WebRTC Metrics
A comprehensive overview of WebRTC statistics, derived indicators, and observable signals, to better understand call quality, connectivity, and user experience in rtcStats
Back
peer-connectionpeer-connectiondata-channel
dataChannelsClosed
Number of data channels that have been closed.
Description
Unsigned long
The number of unique RTCDataChannels that have left the "open" state during the lifetime of this RTCPeerConnection (channels that transitioned to "closing" or "closed" states).
Defined in the W3C WebRTC Statistics specification.
See also
- peer-connection->dataChannelsOpened
- WebRTC Statistics Specification

Notes
- Subtract dataChannelsClosed from dataChannelsOpened to get the number of currently open data channels
- A high number of opens and closes may indicate an application pattern of creating short-lived data channels