此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

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 的字符串:connectingopenclosingclosed

请注意,该属性是必需的。