title: Websocket vs SockJS object
body: <p>I am wondering why you are able to initialize a normal javascript websocket with:</p>
  
  <pre><code> var socket = new WebSocket('ws://example.com/myprefix')
  </code></pre>
  
  <p>But with SockJS you need to call a normal http(s) url:</p>
  
  <pre><code>var sock = new SockJS('https://example.com/my_prefix');
  </code></pre>
  
  <p>Why doesn't SockJS allow 'normal' ws urls?</p>