# asyncio.exceptions.TimeoutError: WebSocket receive timed out

- **ID:** `python/aiohttp-ws-receive-timeout`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

WebSocket connection does not receive a message within the specified timeout period.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   msg = await asyncio.wait_for(ws.receive(), timeout=10)
   ```
2. **** (85% success)
   ```
   await ws.ping(); await asyncio.wait_for(ws.receive(), timeout=10)
   ```

## Dead Ends

- **** — May cause the application to hang indefinitely. (60% fail)
- **** — Blocks forever if no message arrives. (80% fail)
