Loading...
Loading...
#[ossido::ws] - the project's single WebSocket handler. Must live in src/ws.rs; the build fails if it appears under src/routes/**. Generates the axum upgrade handler that hands the raw socket + SocketManager to the annotated function. See ossido::ws.
The project's single WebSocket handler. It must live in `src/ws.rs`; marking one under `src/routes/**` is a build error. After `Request`, parameters may appear in any order and are supplied by the framework (`WebSocket`, `TypedSocket`, `SocketManager`, `Logger`) or destructured from your `ApplicationState`.