title: How connect websocket to wss:// on https server
body: <p>i could connect to my websocket php server on client side js file like this:</p>
  
  <pre><code>websocket = new WebSocket("ws://mysite.com:9091");   
  </code></pre>
  
  <p>but now we bought ssl for our  server , so url start with Https instead of Http
  Now we can't connect to ws:// so i changed it to wss:// 
  but still can't connect to server</p>
  
  <pre><code>failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR
  </code></pre>