Skip to main content

connect_event_moq_uds_background

Function connect_event_moq_uds_background 

Source
pub fn connect_event_moq_uds_background(origin: MoqEventOrigin, path: PathBuf)
Expand description

Connect a local event origin to the event service’s UDS plane (#275).

Spawns a background task that connects a moq_net::Client (built with with_origin(local_producer)) to path, keeping the link alive and reconnecting on failure. The session is bidirectional: locally-published event broadcasts are announced UP to the event service, and broadcasts from other processes flow DOWN into origin so local subscribers see them.

Called once, in non-event processes, AFTER registering origin as the process global. The task runs for the process lifetime.