Developer Documentation

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