400 error for websocket

I am using Cloudflare from last 2 year and my product’s socket.io was working properly till Cloudflare introduced WebSocket functionality.

I am using Socket.io with NodeJS application. Sometimes the application works properly also. But most of the time it throws 400 error. Even though after 400 socket connection still works, but without switching protocol.

My websocket is enabled in Cloudflare configuration. Any help is appriciated.

This topic was automatically closed after 14 days. New replies are no longer allowed.