Message
Represents a message that can be received through a WebRTC data channel. The message can contain either string data or binary data.
See also
Inheritors
Functions
Link copied to clipboard
Returns the binary content of the message if it's a binary message, otherwise returns null.
Link copied to clipboard
Returns the binary content of the message if it's a binary message, otherwise throws an exception.
Link copied to clipboard
Returns the text content of the message if it's a text message, otherwise returns null.
Link copied to clipboard
Returns the text content of the message if it's a text message, otherwise throws an exception.