(self, scope: Scope, receive: Receive, send: Send)
| 34 | |
| 35 | class JSONEchoApp: |
| 36 | async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 37 | websocket = WebSocket(scope, receive, send) |
| 38 | await websocket.accept() |
| 39 | await websocket.send_json(await websocket.receive_json()) |
| 40 | await websocket.close() |
| 41 | |
| 42 | |
| 43 | @dataclass(frozen=True) |
nothing calls this directly
no test coverage detected