Extended EventEmitter that also emits all events to '*' listeners

Hierarchy (View Summary)

Constructors

Properties

idsByRelay: Map<string, Set<string>> = ...
relaysById: Map<string, Set<string>> = ...
defaultMaxListeners: number

Methods

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • eventId: string
    • relay: string

    Returns void

  • Returns void

  • Parameters

    • eventId1: string
    • eventId2: string

    Returns void

  • Emits an event to listeners and to '*' listeners

    Parameters

    • type: string

      Event type/name

    • ...args: any[]

      Arguments to pass to listeners

    Returns boolean

    True if event had listeners

  • Returns (string | number)[]

  • Parameters

    • relay: string

    Returns Set<string>

  • Returns number

  • Parameters

    • eventId: string

    Returns Set<string>

  • Parameters

    • eventId: string
    • relay: string

    Returns undefined | boolean

  • Parameters

    • type: string | number

    Returns number

  • Parameters

    • type: string | number

    Returns Listener[]

  • Parameters

    • relaysById: Map<string, Set<string>>

    Returns void

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number

    Returns Listener[]

  • Parameters

    • Optionaltype: string | number

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • eventId: string
    • relay: string

    Returns void

  • Parameters

    • n: number

    Returns this

  • Parameters

    • eventId: string
    • relay: string

    Returns boolean

  • Parameters

    • emitter: EventEmitter
    • type: string | number

    Returns number