Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Peer<IEventsList>

Type parameters

Hierarchy

Indexable

[key: string]: any

Index

Constructors

Static constructor

  • new Peer(id?: string): any
  • Parameters

    • Optional id: string

    Returns any

Properties

Static channelsManager

channelsManager: TChannelsManager

Static cursorsManager

cursorsManager: TCursorManager

Static emitter

emitter: EventEmitter

Static id

id: string

Static isDestroyed

isDestroyed: boolean

Static prepared

prepared: IPeerPrepared

Static relations

Methods

Static channelDestroyed

  • channelDestroyed(channelId: string): void

Static cursorDestroyed

  • cursorDestroyed(channelId: string, cursorId: string): void

Static destroy

  • destroy(): void
  • Returns void

Static emit

  • emit<IE>(eventName: IE, data: IEventsList[IE]): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • data: IEventsList[IE]

    Returns this

Static generateId

  • generateId(): string
  • Returns string

Static getApiCallbacks

Static gotPkg

  • gotPkg(channelId: string, pkg: IPkg): void

Static handleBundles

  • handleBundles(channelId: string, pkg: IPkg): void

Static handleDestroyed

  • handleDestroyed(channelId: string, pkg: IPkg): void

Static handleQueries

  • handleQueries(channelId: string, pkg: IPkg): void

Static handleQuery

  • handleQuery(channelId: string, query: any): void

Static off

  • off<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

Static on

  • on<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

Static once

  • once<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

Static ready

  • ready(channelId: string): void

Static sendDestroyed

Static sendQuery

Static wrap

  • wrap(): void

Generated using TypeDoc