Back to Content

RTCDataChannelStats: protocol property

files/en-us/web/api/rtcdatachannelstats/protocol/index.md

latest625 B
Original Source

{{APIRef("WebRTC")}}

The protocol property of the {{domxref("RTCDataChannelStats")}} dictionary returns a string containing the {{domxref("RTCDataChannel.protocol", "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 {{domxref("RTCDataChannel.protocol")}} property of the associated data channel.

If no protocol was defined, this will be the empty string ("").

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("RTCDataChannel.protocol")}}