Home > rainway-sdk-native > Peer > send
Peer.send() method
Sends a message to the specified guest.
Signature:
send(channel: string, msg: Uint8Array): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| channel | string | data channel to send the message on. |
| msg | Uint8Array | Raw bytes to send. |
Returns:
void
