Skip to main content

run_ws

Function run_ws 

Source
pub async fn run_ws(
    port: u16,
    upstream_ws_url: String,
    connect_timeout: Duration,
) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description

Spawn the WS server on port. Forwards every connection to upstream_ws_url. Returns when the listener exits.