MCPcopy Create free account
hub / github.com/Wulf/create-rust-app / ws_handler

Function ws_handler

crates/create-rust-app/src/dev/dev_server.rs:123–125  ·  view source on GitHub ↗
(ws: WebSocketUpgrade, State(state): State<Arc<AppState>>)

Source from the content-addressed store, hash-verified

121}
122
123async fn ws_handler(ws: WebSocketUpgrade, State(state): State<Arc<AppState>>) -> impl IntoResponse {
124 ws.on_upgrade(|socket| handle_socket(socket, state))
125}
126
127/// TODO break this function up into smaller sub functions
128#[allow(clippy::too_many_lines)]

Callers

nothing calls this directly

Calls 1

handle_socketFunction · 0.85

Tested by

no test coverage detected