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

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

deletes: Map<string, number> = ...
eventsByAddress: Map<string, E> = ...
eventsByAuthor: Map<string, E[]> = ...
eventsByDay: Map<number, E[]> = ...
eventsById: Map<string, E> = ...
eventsByTag: Map<string, E[]> = ...
eventsByWrap: Map<string, E> = ...
defaultMaxListeners: number

Methods

  • Type Parameters

    • K

    Parameters

    • m: Map<K, E[]>
    • k: K
    • Optionaladd: E
    • Optionalremove: E

    Returns void

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Returns E[]

  • 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

    • idOrAddress: string

    Returns undefined | E

  • Returns number

  • Parameters

    • event: E

    Returns undefined | boolean

  • Parameters

    • event: E

    Returns boolean

  • Parameters

    • event: E

    Returns boolean

  • Parameters

    • event: E

    Returns boolean

  • Parameters

    • type: string | number

    Returns number

  • Parameters

    • type: string | number

    Returns Listener[]

  • Parameters

    • events: E[]
    • chunkSize: number = 1000

    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

    • event: E
    • __namedParameters: { shouldNotify?: boolean } = {}

    Returns boolean

  • Parameters

    • filters: Filter[]
    • __namedParameters: { includeDeleted?: boolean } = {}

    Returns E[]

  • Parameters

    • type: string | number

    Returns Listener[]

  • Parameters

    • Optionaltype: string | number

    Returns this

  • Parameters

    • idOrAddress: string

    Returns void

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • n: number

    Returns this

  • Parameters

    • emitter: EventEmitter
    • type: string | number

    Returns number