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