pub fn serve_origin_to_relay_background(
producer: OriginProducer,
relay: TransportConfig,
admission_proof: Option<MoqlAdmissionProof>,
relay_server_identity: Option<MoqlServerIdentity>,
)Expand description
Announce this node’s streaming origin UP to the producer-chosen relay (#358).
Spawns a background task that dials the relay via crate::dial::dial_stream,
runs the moq handshake with with_origin(producer) (so the producer’s
broadcasts are announced UP to the relay and re-served to its subscribers),
holds the session open, and reconnects on failure. The task runs for the
process lifetime.
Called by the producing service after its relay reach is configured —
typically with global_moq_origin().producer(). No-op-safe to omit when the
node has no relay (direct-only deployments).