RTCDataChannelStats: state property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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.