Implementation Note: There should not be any default listeners for change events in a client implementation. Default listeners mean a client cannot determine when there are actual application developer provided listeners. If we require default listeners, then we should add a system to allow listeners which have counts independent of the primary listener counts.

Hierarchy

  • LDEmitter

Constructors

Properties

_listeners: Map<LDEmitterEventName, ((...args) => void)[]> = ...
_logger?: LDLogger

Methods

  • Unsubscribe one or all events.

    Parameters

    • name: LDEmitterEventName
    • Optional listener: ((...args) => void)

      Optional. If unspecified, all listeners for the event will be removed.

      Optional
        • (...args): void
        • Parameters

          • Rest ...args: any[]
            Rest

          Returns void

    Returns void

Generated using TypeDoc