Home > @rainway/web > DataChannel > send
DataChannel.send() method
Transmits data to the remote peer. If the data is a string, it will be encoded and sent as UTF-8.
Signature:
send(data: Uint8Array | string): void;
Parameters
Parameter | Type | Description |
---|---|---|
data | Uint8Array | string | the data to transmit |
Returns:
void