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