Skip to main content

serve_moq_uds_background

Function serve_moq_uds_background 

Source
pub fn serve_moq_uds_background(origin: MoqStreamOrigin, path: PathBuf)
Expand description

Start a UDS moq server in the background, serving the moq origin’s consumer to local cross-process subscribers (e.g. hyprstream tui attach).

Each accepted connection that presents crate::transport::uds_session::PLANE_MOQ gets a dedicated moq server session via moq_net::Server::with_publish. The origin consumer is cloned per session so every subscriber sees the same live broadcast tree.

Idempotent: a second call is a no-op (the first path wins).