RTCDataChannel.maxPacketLifeTime

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

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

JavaScript
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

JavaScript
// TBD

Specifications

Specification Status Comment
WebRTC 1.0: Real-time Communication Between Browser
The definition of 'RTCDataChannel.maxPacketLifeTime' in that specification.
Working Draft Initial specification.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support No support No support No support No support
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support No support No support No support No support

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/rtcdatachannel/maxpacketlifetime

Experimental maxPacketLifeTime NeedsExample Property Read-only Reference RTCDataChannel WebRTC