Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPeer<IEventsList>

Type parameters

Hierarchy

  • INode<IEventsList>

Indexable

[key: string]: any

Index

Constructors

constructor

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

    • Optional id: string

    Returns any

Properties

channelsManager

channelsManager: TChannelsManager

cursorsManager

cursorsManager: TCursorManager

emitter

emitter: EventEmitter

id

id: string

isDestroyed

isDestroyed: boolean

prepared

prepared: IPeerPrepared

relations

Methods

channelDestroyed

  • channelDestroyed(channelId: string): void

cursorDestroyed

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

destroy

  • destroy(): void
  • Returns void

emit

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

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • data: IEventsList[IE]

    Returns this

generateId

  • generateId(): string
  • Returns string

getApiCallbacks

gotPkg

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

handleBundles

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

handleDestroyed

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

handleQueries

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

handleQuery

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

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

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

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

ready

  • ready(channelId: string): void

sendDestroyed

sendQuery

wrap

  • wrap(): void

Generated using TypeDoc