feat: support proxy for ws connection (#9409)

unfortunately tokio-tungstenite doesn't support proxy configuration
outbox, while https://github.com/snapview/tokio-tungstenite/pull/370 is
in review, we can depend on source code for now.
This commit is contained in:
Anton Panasenko
2026-01-20 09:36:30 -08:00
committed by GitHub
parent 7351c12999
commit 7b27aa7707
9 changed files with 43 additions and 25 deletions

View File

@@ -923,7 +923,7 @@ pub async fn start_websocket_server_with_headers(
let Ok(payload) = serde_json::to_string(event) else {
continue;
};
if ws_stream.send(Message::Text(payload)).await.is_err() {
if ws_stream.send(Message::Text(payload.into())).await.is_err() {
break;
}
}