title: Websockets on localhost wihout SSL
body: <p>This line:</p>
  
  <pre><code>var socket = new WebSocket(this.getUrl());
  </code></pre>
  
  <p>Causes error:</p>
  
  <pre><code>WebSocket connection to 'ws://127.0.0.1:6437/v6.json' failed: Error during WebSocket handshake: Unexpected response code: 400
  </code></pre>
  
  <p>I'm guessing I could get around it by using SSL but as I’m just playing around locally with MAMP it would be nice not to have to set this up. I get the same from Chrome, Firefox and Safari. The context is that I’m playing with a Leap Motion controller and everything works fine as long as it’s running remotely with SSL.</p>
  
  <p>Do I really need SSL for all local development using web sockets or am I missing something?  </p>