Skip to main content

dial_stream

Function dial_stream 

Source
pub async fn dial_stream(target: &TransportConfig) -> Result<MoqStreamSession>
Expand description

Dial the moq streaming plane for a network-routable reach, returning a live [web_transport_quinn::Session] (#274).

The sibling of dial for the streaming plane: it dials the /moq path over web_transport_quinn (the server path-dispatches /moq → moq, default → RPC), reusing crate::transport::quinn_transport’s connect + cert-pin helpers. The returned session is handed straight to moq_net::Client::connect.

Only the network-routable transports are dialable here. Ipc / Inproc / SystemdFd are same-host endpoints resolved from LOCAL config — never from a wire-published reach — so they are rejected: a co-located client must use the same-host UDS fast path instead of dialing.