RTCDataChannel.maxPacketLifeTime

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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 when in unordered mode.

This value is only used while in unordered (sometimes called "unreliable") mode; that is, if ordered is false.

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 Status Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCDataChannel.maxPacketLifeTime' in that specification.
Candidate Recommendation Initial specification.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support56 ? No No43 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5656 ? No43 ?6.0

See also

Document Tags and Contributors

 Contributors to this page: fscholz, Sheppy, Jib
 Last updated by: fscholz,