WebRTC
The protocol property of the RTCDataChannelStats dictionary returns a string containing the RTCDataChannel.protocol of the associated data channel.
The value is defined by the website or app when it creates the data channel.
Value
A string containing the same value as the RTCDataChannel.protocol property of the associated data channel.
If no protocol was defined, this will be the empty string ("").
Specifications
Browser compatibility
See also
- RTCDataChannel.protocol
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
