Our new developer documentation is now available. Please check it out!
OdinRoom.sendMessage
On this page
public sendMessage(message: Uint8Array, peerIdList?: number[]): void
Sends a message to the room.
Parameters
Name | Type | Description |
---|---|---|
message | Uint8Array | The message to send as a byte array. |
peerIdList | number[] | The list of peer IDs to send the message to. If this is undefined, the message will be sent to all peers. If the list is defined and empty an error will be thrown. |
Returns
Type | Description |
---|---|
void |