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

OdinRoom.addEventListener

addEventListener(eventName: OdinEvent, handler: IOdinRoomEvents[OdinEvent]): void

Register to peer events from IOdinRoomEvents.

Parameters

NameTypeDescription
eventNameOdinEventThe name of the event to listen to
handlerIOdinRoomEvents[OdinEvent]The callback to handle the event

Returns

TypeDescription
void