pub fn canonical_topic(addr: &str) -> StringExpand description
The canonical relay topic for a peer address — its stable identity on the relay, computed identically by both endpoints.
A multiaddr or ws:// URL normalizes to its ws:// form (so
/ip4/127.0.0.1/tcp/8000 and ws://127.0.0.1:8000 name the same peer); any
other string (a bare name like "alice") is used verbatim (trimmed). This is
what Send … to <peer> publishes on and what Listen at "<me>" subscribes
to, so a sender and a receiver that write the same address agree on the topic.