get_transport_info

Function get_transport_info 

Source
pub fn get_transport_info(addr: &str) -> (&'static str, &'static str)
Expand description

Return an emoji and transport keyword for a multiaddr string.

Emoji table:

TransportEmoji
webrtc-direct🌐
webrtc (circuit)🌐
webtransportπŸš€
websocket (wss)πŸ•ΈοΈ
tcpπŸ”Œ
quic⚑
p2p-circuitπŸ”„
unknown❓

For circuit-relay addresses the final transport (after the relay hop) is reported so the UI shows how the target peer is reachable, not how the relay is reached.