(socket: WebSocket, upstream_url: String)
| 339 | } |
| 340 | |
| 341 | pub async fn proxy_websocket(socket: WebSocket, upstream_url: String) { |
| 342 | if let Err(error) = proxy_websocket_inner(socket, upstream_url).await { |
| 343 | debug!("DevTools proxy socket closed: {error}"); |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | async fn proxy_websocket_inner(socket: WebSocket, upstream_url: String) -> Result<(), String> { |
| 348 | let mut request = upstream_url |
no test coverage detected