W3cubDocs

/Web APIs

RTCIceCandidatePairStats.lastRequestTimestamp

The RTCIceCandidatePairStats property lastRequestTimestamp indicates the time at which the most recent STUN request was sent on the described candidate pair.

Value

A DOMHighResTimeStamp object indicating the timestamp at which the last (most recent) STUN request was sent on the connection indicated by the described pair of candidates.

You can use this value in combination with firstRequestTimestamp and requestsSent to compute the average interval between consecutive connectivity checks:

avgCheckInterval = (candidatePairStats.lastRequestTimestamp -
                    candidatePairStats.firstRequestTimestamp) /
                   candidatePairStats.requestsSent;

Specifications

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
lastRequestTimestamp
No
No
No
No
No
No
No
No
No
No
No
No

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidatePairStats/lastRequestTimestamp