Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
Source from the content-addressed store, hash-verified
| 357 | |
| 358 | class WebSocketEndpoint: |
| 359 | async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 360 | websocket = WebSocket(scope=scope, receive=receive, send=send) |
| 361 | await websocket.accept() |
| 362 | await websocket.send_json({"URL": str(websocket.url_for("websocket_endpoint"))}) |
| 363 | await websocket.close() |
| 364 | |
| 365 | |
| 366 | mixed_protocol_app = Router( |
Callers
nothing calls this directly
Tested by
no test coverage detected