Skip to main content

publish

Function publish 

Source
pub fn publish(envelope: SessionEventEnvelope)
Expand description

Publish one envelope to the bus (best-effort, never panics).

Why: Most callers don’t care whether anyone is listening — events are telemetry, not control flow. Failures (no subscribers) are normal. The envelope (not a bare Event) is the unit of publication so seq/at travel with the payload to every subscriber, including a client that only just attached. What: Sends the envelope on the broadcast channel, ignoring SendError. Test: publish_round_trips_through_subscribe.