Skip to main content

peer_signal_content

Function peer_signal_content 

Source
pub fn peer_signal_content(topic_id: &str, node_addr: Option<&str>) -> String
Expand description

The kind-3310 peer-signal content, shared by every community transport (the v1 channel plane and the v2 chat plane must stay byte-compatible): {"op":"ad","topic":..,"addr":..} advertises an Iroh node, {"op":"left",..} departs.