Listen for events which will happen during the session. For example if you are waiting for task from other applications like notifications. This function is only available in DokuMe environment.
Listen for events
Register your event by passing a name and a callback function which will be executed as soon the event fires. You can pass for the same event multiple events.
Unregister your callback function for a specific event by passing event name and original functtion.
Send data to pubsub events
By this function you can create a new Event and pass data which will be provided to the registered callback functions.
Delete the whole Event with all functions that are registered.