Constructors

Properties

CLEAN_BUFFER_EVENT_NAME: string = CLEAN_BUFFER_EVENT_NAME
FLUSH_BUFFER_EVENT_NAME: string = FLUSH_BUFFER_EVENT_NAME

Methods

  • Checks if the buffer exists

    Parameters

    • id: string | number

    Returns boolean

  • Add an event listener

    Parameters

    • eventName: string
    • fn: Function

    Returns Function

    the "unsubscriber". Call this function to unsubscribe this event (or use the unsubscribe method)

  • Parameters

    • eventNames: string[]

      Event's names

    • fn: Function

      Handler

    Returns Function

    Unsubscriber for all events

    See

    • subscribe Add an event listener to multiple event aht the same time
    • EventManager.subscribe

Generated using TypeDoc