I am using Cloudflare Flexible SSL but temporarily disabling the Always Use HTTPS setting for testing purposes.
I am trying to implement websocket via port 8080 using Socket.io on my app but I cannot make it to work over HTTPS. It is fine when I am viewing the app over HTTP whereby the clients are able to connect to the socket server.
FYI, the client app resides in a subdomain such as http://sub.domain.com while the NodeJS socket server resides at http://domain.com:8080.
On HTTPS mode however, the console output ERR_SSL_PROTOCOL_ERROR when the clients are trying to connect to the socket server. I read somewhere on the Cloudflare forum a guy suggested to set a Page Rule to disable SSL on the URL you are using to call the socket server such as (asterisk)domain.com:8080/(asterisk). I have tried this and it still doesn’t work.
It is vital for the web app to work in HTTPS.
Can you advise how to set this up properly?