title: Connect to SuperWebSocket Server through JavaScript
body: <p>I've created a Sample Application based on <a href="http://superwebsocket.codeplex.com/" rel="nofollow">SuperWebSocket</a> (running v0.3). I manage to get connect to the WebSocket Server through Telnet, but for some reason I'm having trouble doing it through JavaScript (running Chrome 17.0.963.46 m).</p>
  
  <p>Through Telnet I can connect through either localhost:911 or 192.168.1.147:911.</p>
  
  <p>My Application is running on <a href="http://localhost/Raphael-Test/" rel="nofollow">http://localhost/Raphael-Test/</a>, and I've tried running through both localhost and the local networks IP, both gets stuck at "Connecting" ie. status 0.</p>
  
  <p>Is there anything obvious I'm missing, any configuration that should be done in the Web Application itself? I should add that I've successfully tried out the LiveChat demo, got it working through JavaScript.</p>
  
  <p>This is my current Client Implementation running when the Page has been fully loaded:</p>
  
  <pre><code>ws = new WebSocket("ws://192.168.1.147:911");
  ws.onopen = function () {
      alert("connected");
  };
  ws.onmessage = function (evt) {
      var msg = evt.data;
      alert(msg);
  };
  </code></pre>
  
  <p>Handshake (with NO response):</p>
  
  <pre><code>GET / HTTP/1.1
  Upgrade: websocket
  Connection: Upgrade
  Host: 192.168.1.147:911
  Origin: http://192.168.1.147
  Sec-WebSocket-Key: 8bl46pmPrixTYRJ/5i9Sug==
  Sec-WebSocket-Version: 13
  </code></pre>