Web SDK - DataChannel.send()

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

ParameterTypeDescription
dataUint8Array | stringthe data to transmit

Returns:

void