Websocket connection problem

Hello, several days ago i began observe problem with websocket connections, but localhost websocket requests working stable and sometimes working via cloudflare, i use free plan on cloudflare so this problem may be on cloudflare side?

May I ask if you’re using some proxy in between? :thinking:

May I ask if Web Sockets feature is enabled at Cloudflare dashboard? Make sure at Cloudflare dashboard → Network → WebSockets the option is turned on (enabled).

What about HTTPS?
Are you using it over HTTPS on your domain?
May I ask are you using it over 443 port or some other?

Make sure to use WSS with HTTPS, if so.

Before moving to Cloudflare, was your Website working over HTTPS connection?
May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?

Sure, nginx proxies websocket port next Cloudflare proxies nginx.


https turned on
over https
443 using
via WSS

I use cloudflare more 2 years and early websocket connection working stable, but week ago connections began rejects, I guess problem is that cloudflare free plan which i use, look this:

​​What happens if my site exceeds the number of concurrent WebSockets connections that Cloudflare expects?
Immediately, nothing. Cloudflare will allow occasional spikes in usage beyond our guidelines and we will not apply unnecessary limits.

Repeated spikes or high continued usage will prompt a dialogue: we’ll reach out to learn more about your application. We will not impose limit errors for any application without contacting the customer unless we suspect that abuse or an attack is involved.

Customers whose usage claims a disproportionate percentage of resources for their current plan level may be asked to upgrade to the plan level that matches their needs.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.