RTCTransportStats: tlsVersion property
Baseline
2026
Newly available
Since July 2026, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The tlsVersion property of the RTCTransportStats dictionary indicates the negotiated TLS version of an underlying DTLS transport.
It is only present for DTLS transports, and only exists after DTLS has been negotiated.
The value comes from the DTLS handshake ServerHello.version, and is represented as four upper case hexadecimal digits, where the digits represent the two bytes of the version.
Note however that the bytes might not map directly to version numbers.
For example, DTLS represents version 1.2 as 'FEFD' which numerically is {254, 253}.
Value
A string that indicates the negotiated DTLS transport.
Specifications
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtctransportstats-tlsversion> |