RTCDataChannel: maxRetransmits property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The read-onlyRTCDataChannel propertymaxRetransmits returns the maximum number of times thebrowser should try to retransmit a message before giving up, as set when the datachannel was created, ornull, which indicates that there is nomaximum. This can only be set when theRTCDataChannel is createdby callingRTCPeerConnection.createDataChannel(), using themaxRetransmits field in the specifiedoptions.
In this article
Value
The maximum number of times the browser will try to retransmit a message before givingup, ornull if not set whenRTCPeerConnection.createDataChannel() was called. The default isnull.
Specifications
| Specification |
|---|
| WebRTC: Real-Time Communication in Browsers> # dom-datachannel-maxretransmits> |