title: Chrome disconnects after WebSockets handshake
body: <p>I am trying to get a simple WebSocket example to work on my machine (<code>localhost</code>), I got JavaScript and C# running just fine and connecting, except that Chrome disconnects after handshake. </p>
  
  <p>I have searched all morning and I think it has something to do with the same domain policy, as another "question" suggests, I have updated my browser to the latest version (<code>12.xxx</code>).</p>
  
  <p>However I couldnt find a solution to my problem.</p>
  
  <p>I am using on the C# side:</p>
  
  <pre><code>ConnectionOrigin = "http://localhost:8080";
  ServerLocation = "ws://localhost:8181/test";
  </code></pre>
  
  <p>And I am running the JavaScript using a normal HTML file open straight from disk (<code>file:///</code> on the url bar). I have also tried using XAMPP to host it locally but I always have the same problem.</p>
  
  <p>Attached goes the log output of the C# program:</p>
  
  <pre><code>   New connection from 127.0.0.1:8181 requested. Handshaking ...
  Reading handshake ...
  GET /test HTTP/1.1
  Upgrade: WebSocket
  Connection: Upgrade
  Host: localhost:8181
  Origin: null
  Sec-WebSocket-Key1: R 506   I   2D }6 qFB  G0`@88J? 4
  Sec-WebSocket-Key2: y  20   8403!24  L 5 8
  
  Sending handshake ...
  HTTP/1.1 101 Web Socket Protocol Handshake
  Upgrade: WebSocket
  Connection: Upgrade
  WebSocket-Origin: http://localhost:8080
  WebSocket-Location: ws://localhost:8181/test
  
  
  New connection from 127.0.0.1:8181 established.
  http://localhost:8080
  Data sent to the client ["Time at the server: 23-07-2011 12:57:27"]
  Client disconnected.
  Waiting for another connection attempt ...
  </code></pre>