WebRTC Metrics

A comprehensive overview of WebRTC statistics, derived calculations, extracted features, and observable signals, to better understand call quality, connectivity, and user experience in rtcStats

Back
On this page3 sections
peer-connectionpeer-connectiondata-channel

dataChannelsClosed

Last updated Applies toany rtcStats setup

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.

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