Skip to main content

publish

Function publish 

Source
pub fn publish(topic: &str, payload_summary: &str) -> u64
Expand description

Publish a pulse event to all subscribers. Returns the sequence number assigned to this event, or 0 if there are no subscribers (the event is still recorded in the sequence counter for monotonicity).

This is the native transport path called by PoetSnapshot::pulse_publish when attached. On WASM, the Poet host falls back to the in-memory published vector.