RTCDataChannel: maxRetransmits 屬性
只讀 RTCDataChannel 屬性 maxRetransmits 返回瀏覽器在放棄之前應嘗試重新傳輸訊息的最大次數(在建立資料通道時設定),或者返回 null,表示沒有最大值。僅在透過呼叫 RTCPeerConnection.createDataChannel() 並使用指定的 options 中的 maxRetransmits 欄位建立 RTCDataChannel 時才能設定此屬性。
值
在呼叫 RTCPeerConnection.createDataChannel() 時未設定的最大重傳次數,或設定為 null。預設值為 null。
規範
| 規範 |
|---|
| WebRTC:瀏覽器中的即時通訊 # dom-datachannel-maxretransmits |
瀏覽器相容性
載入中…