OdinRoom.sendMessage

sendMessage(message: Uint8Array, targetPeerIds?: number[]): Promise<void>

Sends a message with arbitrary data to all peers in the room or optionally to a list of specified peers.

Parameters

NameTypeDescription
messageUint8ArrayByte array of arbitrary data to send
targetPeerIdsnumber[]Optional list of target peer IDs

Returns

TypeDescription
Promise<void>