RTCTransportStats: id property

The id property of the RTCTransportStats dictionary is a string which uniquely identifies the object for which this object provides statistics.

Using the id, you can correlate this statistics object with others, in order to monitor statistics over time for a given WebRTC object, such as an RTCDtlsTransport, or an RTCPeerConnection.


A string that uniquely identifies the object for which this RTCTransportStats object provides statistics.

The format of the ID string is not defined by the specification, so you cannot reliably make any assumptions about the contents of the string, or assume that the format of the string will remain unchanged for a given object type.


Identifiers for WebRTC's Statistics API
# dom-rtcstats-id

Browser compatibility

BCD tables only load in the browser