I’m currently experimenting with WebSockets in Cloudflare Workers and I’ve come across an issue.
My script, which has no purpose other than to test the limits of WebSockets on Workers, is quite simple. Each time the Worker receives a message, it responds with exactly 1 MiB of null bytes.
If I connect using a single public IP, no matter how many concurrent WebSocket connections I have open, I am unable to download at more than ~40 MiB/s.
I initially thought this might be an issue with my connection. However, when I connected through a SOCKS5 proxy and therefore spread the load across multiple public IPs, I was able to download at ~110 MiB/s, maxing out my ISP connection.
Is Cloudflare limiting the total throughput of a single IP, or could there be another explanation?
Thanks a lot in advance!