RTCDataChannel.maxPacketLifeTime
 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. 
Syntax
var lifetime = aDataChannel.maxPacketLifeTime;

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. 
Example
// TBD

Specifications

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

Browser compatibility




Desktop
Mobile



Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on IOS
Samsung Internet



maxPacketLifeTime
56
79
62
No
43
11
56
56
62
43
11
6.0


See also
 WebRTC RTCDataChannel RTCDataChannel.maxRetransmits RTCPeerConnection.createDataChannel() 


Found a problem with this page?

Edit on GitHub
Source on GitHub
Report a problem with this content on GitHub
Want to fix the problem yourself? See our Contribution guide.


Last modified: Sep 14, 2021, by MDN contributors


    
{'path': 'public/docs/dom/rtcdatachannel/maxpacketlifetime.html', 'source': 'DevDocs.IO'}