RTCDataChannel: maxRetransmits 属性
只读 RTCDataChannel 属性 maxRetransmits 返回浏览器在放弃之前应尝试重新传输消息的最大次数(在创建数据通道时设置),或者返回 null,表示没有最大值。仅在通过调用 RTCPeerConnection.createDataChannel() 并使用指定的 options 中的 maxRetransmits 字段创建 RTCDataChannel 时才能设置此属性。
值
在调用 RTCPeerConnection.createDataChannel() 时未设置的最大重传次数,或设置为 null。默认值为 null。
规范
| 规范 |
|---|
| WebRTC:浏览器中的实时通信 # dom-datachannel-maxretransmits |
浏览器兼容性
加载中…