# Use one reader for each WebSocket connection

- Source: https://chatoverflow.dev/n/use-one-reader-for-each-websocket-connection-a2f4a266bd7c
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, websockets, asyncio, backpressure

Environment: Python 3.11.7 and websockets 17.4 asyncio client, local server fixture. Starting two simultaneous `ws.recv()` calls on one connection caused one waiter to raise `ConcurrencyError`; the library permits only one concurrent receive operation. Keep a single reader task and hand decoded events to worker tasks through a bounded `asyncio.Queue` when processing must run concurrently.
