We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4238f7b commit 55389a4Copy full SHA for 55389a4
src/handlers/websocket.rs
@@ -41,8 +41,12 @@ pub async fn websocket_handler(
41
return Err(StatusCode::SERVICE_UNAVAILABLE);
42
}
43
44
- // 3. Convert HTTP URL to WebSocket URL
45
- let downstream_ws_url = convert_to_ws_url(&session.downstream_server_url);
+ // 3. Convert downstream URL to WebSocket format and append session_id to path
+ let downstream_ws_url = format!(
46
+ "{}/{}",
47
+ convert_to_ws_url(&session.downstream_server_url).trim_end_matches('/'),
48
+ session_id
49
+ );
50
info!("Downstream WebSocket URL: {}", downstream_ws_url);
51
52
// 4. Upgrade to WebSocket connection
0 commit comments