Class InMemoryJSONEventBuffer

[[InMemoryJSONEventBuffer]] is an in-memory implementation for buffering and sending events. It buffers events based on number of events and its size whichever reaches first. Events are sent out at an scheduled interval where important events are sent immediately. It also retries sending events if failed upto the retry count limit. It implements beaconing mechanism based on 'pagehide' and 'visibilitychange' to beacon all events as a last attempt.

Implements

Constructors

Methods

Constructors

Methods

  • Adds an event to the buffer. An error is thrown if the event buffer is full.

    Parameters

    Returns Promise<void>

  • Dispose of this instance. The instance cannot be used after this method has been called.

    Returns Promise<void>

  • Starts sending events.

    Returns void

  • Stops sending events.

    Returns void