Class: EventCenter

EventCenter

EventCenter is used to centralized and stored the different events that can happened on apiRTC
Ex : UserMediaMedia or iceDisconnection error,


new EventCenter()

Classes

EventCenter

Methods


clearStoredData()

Clear stored events


disableStorage(disabled)

Disable EventCenter storage.
EventCenter is completely disabled, no storage in localStorage and no console output.

Parameters:
Name Type Description
disabled boolean

Whether to deactivate EventCenter storage (default is false).


enableConsoleOutput(enabled)

Activate console output

Parameters:
Name Type Description
enabled boolean

Whether to activate console output (default is false).


getStoredData()

Returns stored events

Returns:
Type
Object.<events>