DataChannel
Abstract class representing a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data. Every data channel is associated with an WebRtcPeerConnection.
See also
Inheritors
Properties
A number of bytes of data currently queued to be sent over the data channel.
A number of queued outgoing data bytes below which the buffer is considered to be "low." When the number of buffered outgoing bytes, as indicated by the bufferedAmount property, falls to or below this value, a DataChannelEvent.BufferedAmountLow event is fired. The default value is 0.
The maximum number of milliseconds that attempts to transfer a message may take in unreliable mode.
The maximum number of times the user agent should attempt to retransmit a message which fails the first time in unreliable mode.
Indicates whether the data channel was negotiated by the application or the WebRTC layer.
A state of the data channel's underlying data connection.
Functions
Closes the data channel transport. The underlying message receiving channel will be closed.
Suspends until a message is available in the data channel and returns it.
Receives a binary message from the data channel.
Receives a text message from the data channel.
Sets the threshold for the buffered amount of data below which the buffer is considered to be "low." When the buffered amount falls to or below this value, a DataChannelEvent.BufferedAmountLow event is fired.
Immediately returns a message from the data channel or null if no message is available.
Immediately returns binary data from the data channel or null if no binary message is available.
Immediately returns text data from the data channel or null if no text message is available.