Function
websocket_state
tests/test_applications.py:94–97
· tests/test_applications.py::websocket_state
(websocket: WebSocket[CustomState])
Source from the content-addressed store, hash-verified
| 92 | |
| 93 | |
| 94 | async def websocket_state(websocket: WebSocket[CustomState]) -> None: |
| 95 | await websocket.accept() |
| 96 | await websocket.send_json({class="st">"count": websocket.state[class="st">"count"]}) |
| 97 | await websocket.close() |
| 98 | |
| 99 | |
| 100 | def custom_ws_exception_handler(websocket: WebSocket, exc: CustomWSException) -> None: |
Callers
nothing calls this directly
Tested by
no test coverage detected