(ws: WebSocketUpgrade, State(state): State<AppState>)
| 21 | use crate::{app_state::AppState, middlewares::LoggedInSession}; |
| 22 | |
| 23 | pub async fn ws_handler(ws: WebSocketUpgrade, State(state): State<AppState>) -> impl IntoResponse { |
| 24 | ws.on_upgrade(move |socket| handle_socket_upgrade(socket, state)) |
| 25 | } |
| 26 | |
| 27 | async fn handle_socket_upgrade(socket: WebSocket, state: AppState) { |
| 28 | WsConn::new(socket, state).run().await; |
nothing calls this directly
no test coverage detected