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

Hierarchy (View Summary)

Constructors

Properties

data: Map<string, Connection>
defaultMaxListeners: number

Methods

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • 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

    • url: string

    Returns Connection

  • Returns number

  • Parameters

    • url: string

    Returns boolean

  • Parameters

    • type: string | number

    Returns number

  • Parameters

    • type: string | number

    Returns Listener[]

  • 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

    • url: string

    Returns void

  • Parameters

    • Optionaltype: string | number

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • n: number

    Returns this

  • Parameters

    • emitter: EventEmitter
    • type: string | number

    Returns number