pub async fn ws_handler(
headers: HeaderMap,
__arg1: Query<WsQueryParams>,
ws: WebSocketUpgrade,
__arg3: State<RealtimeState>,
) -> impl IntoResponseExpand description
WebSocket upgrade handler for /realtime/v1.
Authenticates via ?token= query parameter or Authorization: Bearer header
before upgrading the connection.
ยงErrors
Returns HTTP 401 if authentication fails (missing, invalid, or expired token). Returns HTTP 429 if the connection limit for this security context is reached.