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

OdinPeer.addEventListener

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

Registers to peer events from IOdinPeerEvents.

Parameters

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

Returns

TypeDescription
void