pub async fn serve_with_registry<C, B>(
conn: C,
bus: B,
ingress: IngressSocket,
path: SessionPath,
webrtc: Option<Arc<dyn WebRtcSignaling>>,
registry: SessionRegistry,
) -> Result<(), SessionEnd>where
C: SessionStreams + 'static,
B: HostBus + 'static,Expand description
Like serve, but registers a successful full-mode open in registry
(for once-a-minute revalidation) and removes it when this call returns.
The close callback stored in the registry closes the SessionStreams
connection. Bind a crate::WebRtcHandle with
SessionRegistry::bind_webrtc so revocation also tears down WebRTC.