Home > @rainway/native > DataChannel > send
DataChannel.send() method
Sends a binary message via this data channel. If a string is given, it will be utf-8 encoded before transmission.
Signature:
send(data: string | Uint8Array): void;
Parameters
Parameter | Type | Description |
---|---|---|
data | string | Uint8Array | data to transmit |
Returns:
void