Our new developer documentation is now available. Please check it out!
OdinRoom.addEventListener
On this page
public addEventListener(eventName: Event, handler: OdinEvents[Event]): void
Adds an event listener to the room for specific events.
Parameters
Name | Type | Description |
---|---|---|
eventName | Event | The event to listen for (see keys of OdinEvents for possible values) |
handler | OdinEvents[Event] | The callback to call when the event is fired. |
Returns
Type | Description |
---|---|
void |