I’m finding conflicting information pointing both ways:
- Limits · Cloudflare Workers docs states an open connection limit of 6 per worker.
- Question about "Simultaneous Open Connections" limit - #3 by arunesh90 states that inbound requests don’t count towards the limit, only outbound connections.
- GitHub - cloudflare/workers-chat-demo seems described and architected such that the above limit likewise doesn’t apply to web sockets, at least in relation to that.
I’m particularly interested in the answer with relation to durable object workers. This is related to the workaround I’m scoping out for Suggestion: WebSocket gateway.
Separately, do the underlying OS resources (probably around 10 KiB or so for each WebSocket connection) also count towards memory usage? I’m assuming so, but I wanted to check first since everything seems to talk about V8 isolates, heaps, and so on.