我开了一个 RTCDataChannel
,并且默认情况下它似乎处于不可靠模式。
我想将它配置为可靠以保证数据包传送,但是 RTCDataChannelInit
配置似乎没有这个设置。
dictionary RTCDataChannelInit {
boolean ordered = true;
unsigned short maxPacketLifeTime;
unsigned short maxRetransmits;
DOMString protocol = "";
boolean negotiated = false;
unsigned short id;
};
另外,
RTCDataChannel.isReliable
是只读属性。如何将 channel 配置为可靠模式?
最佳答案
默认为可靠 channel 。见 specification ,该部分的第四段。
关于WebRTC RTCDataChannel - 如何配置可靠?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35394097/