(ws: WebSocketUpgrade, State(state): State<Arc<AppState>>)
| 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)) |
| 125 | } |
| 126 | |
| 127 | /// TODO break this function up into smaller sub functions |
| 128 | #[allow(clippy::too_many_lines)] |
nothing calls this directly
no test coverage detected