RTCDataChannel: maxPacketLifeTime 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 propertymaxPacketLifeTime returns the amount of time, inmilliseconds, the browser is allowed to take to attempt to transmit a message, as setwhen the data channel was created, ornull. This limits how longthe browser can continue to attempt to transmit and retransmit the message before givingup.
In this article
Value
The number of milliseconds over which the browser may continue to attempt to transmitthe message until it either succeeds or gives up. If not set whenRTCPeerConnection.createDataChannel() was called to create the datachannel, this value isnull.
Specifications
| Specification |
|---|
| WebRTC: Real-Time Communication in Browsers> # dom-datachannel-maxpacketlifetime> |