Hierarchy

  • EmitterBase<ChannelEvent>
    • Channel

Constructors

Properties

addListener: (<EventType>(eventType: EventType, listener: EventHandler<ChannelEvent, EventType>, options?: SubscriptionOptions) => Promise<Channel>) = ...

Type declaration

wire: Transport<EntityType>

Accessors

Methods

  • Type Parameters

    • EventType extends string

    Parameters

    • eventType: EventType
    • payload: Extract<EmitterEvent, {
          type: EventType;
      }>
    • Rest ...args: any[]

    Returns boolean

  • Returns (string | symbol)[]

  • Parameters

    • type: string | symbol

    Returns number

  • Parameters

    • type: string | symbol

    Returns Function[]

  • Parameters

    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Promise<void>

  • Parameters

    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Promise<void>

  • Type Parameters

    • EventType extends "connected" | "disconnected"

    Parameters

    Returns Promise<Channel>

  • Type Parameters

    • EventType extends "connected" | "disconnected"

    Parameters

    Returns Promise<Channel>

  • Parameters

    • Optional eventType: "connected" | "disconnected"

    Returns Promise<Channel>

  • Type Parameters

    • EventType extends "connected" | "disconnected"

    Parameters

    Returns Promise<Channel>

Generated using TypeDoc