Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPeerCursor<IEventsList>

Type parameters

  • IEventsList: ICursorEventsList

Hierarchy

  • INode<IEventsList>
    • IPeerCursor

Indexable

[key: string]: any

Index

Constructors

constructor

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

    • Optional id: string

    Returns any

Properties

emitter

emitter: EventEmitter

id

id: string

isDestroyed

isDestroyed: boolean

query

Methods

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

exec

generateId

  • generateId(): string
  • Returns string

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

Generated using TypeDoc