reset - Methods - Events API

Events API Methods

reset()

Reset the eventsApp instance to stop subscribing to events and return any unpublished events.

You would want to use this to clean up and restart the eventsApp instance.

Examples

eventsApp.reset();

Arguments

None.

Return value

Type array[object]

An array of events that had been passed to publish() but not yet actually published, due to batching or errors requiring retry.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.