Websocket handshake error 500

Hi, when I run my website without Cloudflare then websocket working fine. but when use Cloudflare, getting below error.
WebSocket connection to ‘wss://DOMAIN_NAME:8443/socket.io/?EIO=3&transport=websocket&sid=turvB96uPEZrXo8eAAAq’ failed: Error during WebSocket handshake: Unexpected response code: 500

WebSocket is not supported in workers at the moment. Set up your routes to bypass workers when using WS.