Back to Content

RTCPeerConnectionStats: dataChannelsClosed property

files/en-us/web/api/rtcpeerconnectionstats/datachannelsclosed/index.md

latest924 B
Original Source

{{APIRef("WebRTC")}}

The dataChannelsClosed property of the {{domxref("RTCPeerConnectionStats")}} dictionary indicates the number of unique {{domxref("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 {{domxref("RTCDataChannel")}} objects that have left the open state during their lifetime.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}