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

OdinRoom.getPeerById

getPeerById(id: number): undefined | OdinPeer

Returns the OdinPeer instance matching the specified ID.

Parameters

NameTypeDescription
idnumberThe peer ID to search for

Returns

TypeDescription
undefined | OdinPeer