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-only RTCDataChannel property maxPacketLifeTime returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or null. This limits how long the browser can continue to attempt to transmit and retransmit the message before giving up.

Value

The number of milliseconds over which the browser may continue to attempt to transmit the message until it either succeeds or gives up. If not set when RTCPeerConnection.createDataChannel() was called to create the data channel, this value is null.

Specifications

Specification
WebRTC: Real-Time Communication in Browsers
# dom-datachannel-maxpacketlifetime

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
maxPacketLifeTime

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

See also