(State(state): State<Arc<AppState>>)
| 114 | } |
| 115 | |
| 116 | async 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 | |
| 123 | async fn ws_handler(ws: WebSocketUpgrade, State(state): State<Arc<AppState>>) -> impl IntoResponse { |
| 124 | ws.on_upgrade(|socket| handle_socket(socket, state)) |