MCPcopy
hub / github.com/encode/starlette / websocket_raise_custom

Function websocket_raise_custom

tests/test_applications.py:89–91  ·  tests/test_applications.py::websocket_raise_custom
(websocket: WebSocket)

Source from the content-addressed store, hash-verified

87
88
89async def websocket_raise_custom(websocket: WebSocket) -> None:
90 await websocket.accept()
91 raise CustomWSException()
92
93
94async def websocket_state(websocket: WebSocket[CustomState]) -> None:

Callers

nothing calls this directly

Calls 2

CustomWSExceptionClass · 0.85
acceptMethod · 0.80

Tested by

no test coverage detected