WebRtcDataChannelOptions

Configuration options for creating a WebRTC data channel.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var id: Int?

A 16-bit numeric ID for the channel; permitted values are 0 to 65534. If you don't include this option, the user agent will select an ID for you.

Link copied to clipboard

The maximum number of milliseconds that attempts to transfer a message may take in unreliable mode. Default: null.

Link copied to clipboard

The maximum number of times the user agent should attempt to retransmit a message which fails the first time in unreliable mode. Default: null.

Link copied to clipboard

By default, (false), data channels are negotiated in-band, where one side calls WebRtcPeerConnection.createDataChannel, and the other side listens to the event using the WebRtcPeerConnection.createDataChannel event handler. Alternatively (true), they can be negotiated out of-band, where both sides call WebRtcPeerConnection.createDataChannel with an agreed-upon ID. Default: false.

Link copied to clipboard

Indicates whether messages sent on the WebRtcDataChannel are required to arrive at their destination in the same order in which they were sent (true), or if they're allowed to arrive out-of-order (false). Default: true.

Link copied to clipboard

The name of the sub-protocol being used on the WebRtcDataChannel, if any; otherwise, the empty string (""). Default: empty string ("").

Link copied to clipboard

Configurations for message receiver Channel.