Skip to main content

announce

Function announce 

Source
pub fn announce(g: &mut Graph, server_peer: Output) -> Output
Expand description

Record a GlobalRegistryClient::Announce NodeProto. The client reads ctx.local_addresses() automatically, throttles sub-interval calls to the server’s last advertised heartbeat interval, and merges the server’s address bag from the Handshake reply.

server_peer is the PeerId Output the announcing client ships its envelope toward (typically a Constant of the server’s stable id, recorded with constant). The output is typed as TYPE_TRIGGER — downstream nodes can chain on the wakeup.