W3cubDocs

/Web APIs

RTCPeerConnectionStats: dataChannelsClosed property

The dataChannelsClosed property of the RTCPeerConnectionStats dictionary indicates the number of unique RTCDataChannel objects that have left the open state during their lifetime.

A channel will leave the open state if either end of the connection or the underlying transport is closed. Note that channels that transition to closing or closed without ever being open are not counted in this number.

Value

A positive integer that indicates the number of unique RTCDataChannel objects that have left the open state during their lifetime.

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
dataChannelsClosed 80 80 113 No 67 13.1 80 80 113 57 13.4 13.0

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