The RTCIceCandidateStats dictionary's relayProtocol property specifies the protocol being used by a local ICE candidate to communicate with the TURN server.
The ICE protocol being used by the candidate otherwise can be obtained from the protocol property.
A string identifying the protocol being used by the endpoint to communicate with the TURN server. The possible values are:
tcpTCP (Transport Control Protocol) is being used to communicate with the TURN server.
tlsTLS (Transport Layer Security) is being used to communicate with the TURN server.
udpUDP (User Datagram Protocol) is being used to communicate with the TURN server.
Note: This property is only present on RTCIceCandidateStats objects that represent local candidates.
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidateStats/relayProtocol