Method
__call__
tests/test_routing.py:343–347
· tests/test_routing.py::WebSocketEndpoint.__call__
(self, scope: Scope, receive: Receive, send: Send)
Source from the content-addressed store, hash-verified
| 341 | |
| 342 | class WebSocketEndpoint: |
| 343 | async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 344 | websocket = WebSocket(scope=scope, receive=receive, send=send) |
| 345 | await websocket.accept() |
| 346 | await websocket.send_json({class="st">"URL": str(websocket.url_for(class="st">"websocket_endpoint"))}) |
| 347 | await websocket.close() |
| 348 | |
| 349 | |
| 350 | mixed_protocol_app = Router( |
Callers
nothing calls this directly
Tested by
no test coverage detected