Skip to main content

spawn_direct_ui_server

Function spawn_direct_ui_server 

Source
pub async fn spawn_direct_ui_server(
    ws_url: String,
    config: UiBridgeConfig,
) -> Result<UiBridge, Error>
Expand description

Serve the UI bundle for a direct red+wss:// / red+ws:// target (ADR 0047). No loopback WS relay is started — the browser connects to ws_url directly. A window.REDDB_WS_URL config is injected into HTML responses so the UI page knows the target without user input.