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

OdinClient.addEventListener

addEventListener(eventName: Event, handler: IOdinClientEvents[Event]): void

Registers to client events from IOdinClientEvents.

Parameters

NameTypeDescription
eventNameEventThe name of the event to listen to
handlerIOdinClientEvents[Event]The callback to handle the event

Returns

TypeDescription
void