Our new developer documentation is now available. Please check it out!
OdinRoom.sendMessage
On this page
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
Name | Type | Description |
---|---|---|
message | Uint8Array | Byte array of arbitrary data to send |
targetPeerIds | number[] | Optional list of target peer IDs |
Returns
Type | Description |
---|---|
Promise<void> |