I recently switched my application to https, everything is working fine except for websockets. If I am trying to connect to my server using the address ws://ws.myserver.com:8080/
I get the following error now:
SecurityError: The operation is insecure.
If i am using wss://ws.myserver.com:8080/
i got below error
Firefox can't establish a connection to the server at wss://ws.myserver.com:8080/
I am using Apache server and my Ratchet Websocket server is running in it.
Based on the comments the site is using insecure ws:// inside a secure site (https://). This mixed content is blocked by several browsers, like Firefox and Chrome which results in the "SecurityError: The operation is insecure." message.