feat: support proxy for ws connection (#9719)

reapply websocket changes without changing tls lib.
This commit is contained in:
Anton Panasenko
2026-01-22 15:23:15 -08:00
committed by GitHub
parent afd63e8bae
commit e117a3ff33
4 changed files with 23 additions and 17 deletions

View File

@@ -930,7 +930,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;
}
}