web api instance property
RTCDataChannelStats: protocol property
The protocol property of the RTCDataChannelStats dictionary returns a string containing the 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 protocol property of the associated data channel.
If no protocol was defined, this will be the empty string ("").
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.