MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / router

Function router

crates/openshell-server/src/ws_tunnel.rs:35–39  ·  view source on GitHub ↗

Create the WebSocket tunnel router.

(state: Arc<ServerState>)

Source from the content-addressed store, hash-verified

33
34/// Create the WebSocket tunnel router.
35pub fn router(state: Arc<ServerState>) -> Router {
36 Router::new()
37 .route("/_ws_tunnel", get(ws_tunnel_handler))
38 .with_state(state)
39}
40
41/// Handle the WebSocket upgrade request.
42async fn ws_tunnel_handler(

Callers 1

http_routerFunction · 0.70

Calls 2

getFunction · 0.85
with_stateMethod · 0.80

Tested by

no test coverage detected