Skip to main content

abstractWeb3Subscription <EventMap, ArgsType, API, CombinedEventMap>

Hierarchy

Index

Constructors

publicconstructor

Properties

publicreadonlyargs

args: ArgsType

Accessors

publicid

  • get id(): undefined | string
  • Returns undefined | string

publiclastBlock

Methods

public_processSubscriptionError

  • _processSubscriptionError(error: Error): void
  • Parameters

    • error: Error

    Returns void

public_processSubscriptionResult

  • _processSubscriptionResult(data: unknown): void
  • Parameters

    • data: unknown

    Returns void

publicemit

  • emit<K>(eventName: K, params: CombinedEventMap[K]): void
  • Type parameters

    • K: string

    Parameters

    • eventName: K
    • params: CombinedEventMap[K]

    Returns void

publiceventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

publicgetMaxListeners

  • getMaxListeners(): number
  • Returns number

publiclistenerCount

  • listenerCount<K>(eventName: K): number
  • Type parameters

    • K: string

    Parameters

    • eventName: K

    Returns number

publiclisteners

  • listeners<K>(eventName: K): (...args: any[]) => void[]
  • Type parameters

    • K: string

    Parameters

    • eventName: K

    Returns (...args: any[]) => void[]

publicoff

  • Type parameters

    • K: string

    Parameters

    Returns void

publicon

  • Type parameters

    • K: string

    Parameters

    Returns void

publiconce

  • Type parameters

    • K: string

    Parameters

    Returns void

publicprocessSubscriptionData

publicremoveAllListeners

  • Returns EventEmitter

publicresubscribe

  • resubscribe(): Promise<void>
  • Returns Promise<void>

publicsendSubscriptionRequest

  • sendSubscriptionRequest(): Promise<string>
  • Returns Promise<string>

publicsendUnsubscribeRequest

  • sendUnsubscribeRequest(): Promise<void>
  • Returns Promise<void>

publicsetMaxListenerWarningThreshold

  • setMaxListenerWarningThreshold(maxListenersWarningThreshold: number): void
  • Parameters

    • maxListenersWarningThreshold: number

    Returns void

publicsubscribe

  • subscribe(): Promise<string>
  • Returns Promise<string>

publicunsubscribe

  • unsubscribe(): Promise<void>
  • Returns Promise<void>