RTCDataChannelStats: state property

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

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

See also