title: Connect to standard socket using WebSocket
body: <p>I have a client interface to a hardware device that communicates over a standard TCP socket. Is it possible to connect to this using WebSocket in a browser like Chrome? Here's the code I am using to connect:</p>
  
  <pre><code>var ws = new WebSocket("ws://127.0.0.1:13854");
  ws.onopen = function() ...
  </code></pre>
  
  <p>The client just fails so far on the first line. Is the problem that WebSockets use their own protocol which a standard local socket would be unfamiliar with? I have tried specifying other protocols ('http://...' and 'tcp://...') but this has not worked.</p>