Can't connect to my websocket with cloudflare

I use FLEXIBLE type. I try to connect on client side to “wss://” (8443 is supported port of cloudflare for SSL connection). The connection between cloudflare to my server is over HTTP (FLEXIBLE type). The port my websocket on server listening to is 8443 also.
When I try to use the websocket (for example in js: new Websocket(‘wss://’)) , it stucks on CONNECTIONG state for a while, then terminates because of TIMOUT ERROR. any help?

A post was merged into an existing topic: Cannot connect to my websocket using Cloudflare