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.