send
Sends a text message through the data channel.
Parameters
text
The text message to send.
See also
Throws
if the channel is closed or not open for sending.
if the message cannot be sent by the underlying WebRTC transport.
Sends binary data through the data channel.
Parameters
bytes
The binary data to send.
See also
Throws
if the channel is closed or not open for sending.
if the message cannot be sent by the underlying WebRTC transport.