Skip to main content

ws_url_with_token

Function ws_url_with_token 

Source
pub fn ws_url_with_token(ws_url: &str, token: &str) -> String
Expand description

Append a ?token= query to a dev websocket URL. Authority-only URLs (ws://host:port) get an explicit / first so naive authority parsers (split('/')) never see the query glued to the port.