fix: forward session_id and user_id query params through WebSocket proxy
This commit is contained in:
parent
bd7ae3b565
commit
281d5aed2e
1 changed files with 4 additions and 2 deletions
|
|
@ -848,13 +848,15 @@ async fn handle_ws_proxy(
|
|||
) {
|
||||
let bot_name = params.bot_name.unwrap_or_else(|| "default".to_string());
|
||||
let backend_url = format!(
|
||||
"{}/ws/{}",
|
||||
"{}/ws/{}?session_id={}&user_id={}",
|
||||
state
|
||||
.client
|
||||
.base_url()
|
||||
.replace("https://", "wss://")
|
||||
.replace("http://", "ws://"),
|
||||
bot_name
|
||||
bot_name,
|
||||
params.session_id,
|
||||
params.user_id
|
||||
);
|
||||
|
||||
info!("Proxying WebSocket to: {backend_url}");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue