RTCDataChannelStats:state 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
RTCDataChannelStats 字典的 state 属性返回一个指示数据通道底层数据连接的 readyState 的字符串:connecting、open、closing 或 closed。
请注意,该属性是必需的。
值
包含与关联数据通道的 RTCDataChannel.readyState 属性相同的值的字符串。
规范
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtcdatachannelstats-state> |