Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC RTCDataChannel - how to configure to be reliable?

I fired up a RTCDataChannel, and, by default it appears to be in unreliable mode.

I want to configure it to be reliable to get guaranteed packet delivery, but the RTCDataChannelInit configuration doesn't seem to have a setting for this.

dictionary RTCDataChannelInit {
             boolean        ordered = true;
             unsigned short maxPacketLifeTime;
             unsigned short maxRetransmits;
             DOMString      protocol = "";
             boolean        negotiated = false;
             unsigned short id;
}; 

Also, the RTCDataChannel.isReliable is a read-only property.

How do I configure the channel to be in reliable mode?

like image 761
Andy Hin Avatar asked Feb 14 '16 16:02

Andy Hin


1 Answers

The default is a reliable channel. See the specification, fourth paragraph in that section.

like image 70
Philipp Hancke Avatar answered Dec 14 '22 11:12

Philipp Hancke