(connection)
| 146 | ws_requests = [0] |
| 147 | |
| 148 | async def ws_handler(connection) -> None: |
| 149 | async for _raw in connection: |
| 150 | ws_requests[0] += 1 |
| 151 | for event in responses_events(WS_TEXT, "resp_stub_ws"): |
| 152 | await connection.send(json.dumps(event)) |
| 153 | |
| 154 | ws_server = await ws_serve(ws_handler, "127.0.0.1", 0) |
| 155 | ws_port = ws_server.sockets[0].getsockname()[1] |
nothing calls this directly
no test coverage detected
searching dependent graphs…