Node.js SDK - Peer.send()

Home > rainway-sdk-native > Peer > send

Peer.send() method

Sends a message to the specified guest.

Signature:

send(channel: string, msg: Uint8Array): void;

Parameters

ParameterTypeDescription
channelstringdata channel to send the message on.
msgUint8ArrayRaw bytes to send.

Returns:

void