Developer Documentation

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