Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinRoom.setEventListener

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

NameTypeDescription
callback(data: OdinEventPayload)=> void)}The callback to call when the event is fired.

Returns

TypeDescription
void