MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / proxy_websocket

Function proxy_websocket

packages/server/src/devtools.rs:341–345  ·  view source on GitHub ↗
(socket: WebSocket, upstream_url: String)

Source from the content-addressed store, hash-verified

339}
340
341pub 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
347async fn proxy_websocket_inner(socket: WebSocket, upstream_url: String) -> Result<(), String> {
348 let mut request = upstream_url

Callers 1

Calls 1

proxy_websocket_innerFunction · 0.85

Tested by

no test coverage detected