pub async fn spawn_ui_bridge(
server: RedDBServer,
config: UiBridgeConfig,
) -> Result<UiBridge, Error>Expand description
Bind a loopback HTTP server that serves the UI bundle and mounts the
RedWire-over-WS endpoint over server’s embedded engine, then spawn
its serve loop. Returns once the listener is bound; the returned
UiBridge carries the resolved address and a clean-shutdown handle.
Must be called from within a tokio runtime (it binds a tokio listener and spawns the serve task).