Our new developer documentation is now available. Please check it out!
OdinRoom.setEventListener
On this page
public setEventListener(callback: (data: OdinEventPayload)=> void)}): void
Sets a global event listener that received all events, this can be helpful for debugging. Please use addEventListener instead for production code.
Parameters
Name | Type | Description |
---|---|---|
callback | (data: OdinEventPayload)=> void)} | The callback to call when the event is fired. |
Returns
Type | Description |
---|---|
void |