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

Function vitejs_down_handler

crates/create-rust-app/src/dev/dev_server.rs:116–121  ·  view source on GitHub ↗
(State(state): State<Arc<AppState>>)

Source from the content-addressed store, hash-verified

114}
115
116async fn vitejs_down_handler(State(state): State<Arc<AppState>>) -> impl IntoResponse {
117 let sender = state.tx.clone();
118 sender.send(DevServerEvent::ViteJSStatus(true)).ok();
119
120 StatusCode::OK.into_response()
121}
122
123async fn ws_handler(ws: WebSocketUpgrade, State(state): State<Arc<AppState>>) -> impl IntoResponse {
124 ws.on_upgrade(|socket| handle_socket(socket, state))

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected