WebRTC Metrics
A comprehensive overview of WebRTC statistics, derived indicators, and observable signals, to better understand call quality, connectivity, and user experience in rtcStats
Back
local-candidateICEcandidateTURNrelay
relayProtocol
The protocol used to communicate with the TURN server.
Description
String enum (udp, tcp, tls)
The protocol used between the client and the TURN server. This is only present for relay candidates. This is the protocol used on the client-to-TURN leg, which may differ from the protocol on the TURN-to-peer leg.
Defined in the W3C WebRTC Statistics specification.
See also
- local-candidate->candidateType
- local-candidate->url
- local-candidate->protocol
- WebRTC Statistics Specification

Notes
- "udp" provides lowest overhead for TURN relay
- "tcp" is used when UDP to the TURN server is blocked
- "tls" (TURN over TLS on port 443) provides the best firewall traversal as it looks like regular HTTPS traffic
- The choice of relay protocol directly impacts latency - TLS adds the most overhead