RTCDataChannelStats: state property

The state property of the RTCDataChannelStats dictionary returns a string that indicates the readyState of the data channel's underlying data connection: connecting, open, closing or closed.

Note that this property is required.

Values

A string containing the same value as the RTCDataChannel.readyState property of the associated data channel.

Specifications

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcdatachannelstats-state

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
state in 'data-channel' stats

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

See also