maxRetransmits
maxRetransmits is an option used in the WebRTC RTCDataChannelInit configuration to control the reliability of messages sent over a data channel. It enables partial reliability by limiting the number of retransmissions that will be attempted for each message, trading delivery assurance for lower latency.
How it works: maxRetransmits is a non-negative integer N. For each message, the underlying transport will try
Usage: To enable limited retransmission, the data channel can be created with a configuration such as {
Compatibility and considerations: Partial reliability through maxRetransmits is supported by major WebRTC implementations, though exact behavior