emitters
all

Description

This is a "catch-all" event which fires when any of the other events are fired. The data will be respective to the event that is fired.


Usage

await sdk.on('all', (data: any) => fn);

Data

data: any;
// data structure will vary depending on the type of the event

Example

sdk?.on(EVENTS.ALL, (data: any) => handleUpdate(EVENTS.ALL + '\r\n' + JSON.stringify(data)));