Our new developer documentation is now available. Please check it out!
OdinRoom.addEventListener
On this page
addEventListener(eventName: OdinEvent, handler: IOdinRoomEvents[OdinEvent]): void
Register to peer events from IOdinRoomEvents
.
Parameters
Name | Type | Description |
---|---|---|
eventName | OdinEvent | The name of the event to listen to |
handler | IOdinRoomEvents[OdinEvent] | The callback to handle the event |
Returns
Type | Description |
---|---|
void |