title: WebSocket connection to 'ws://localhost:8081/.../.../...' failed: HTTP Authentication failed; no valid credentials available
body: <p>I have to use Websocket connection in my project with angular 2
  I have trouble with creating Websocket connection with error 
  'WebSocket connection to 'ws://localhost:8081/.../.../..' failed: HTTP Authentication failed; no valid credentials available'
  Here's my code</p>
  
  <pre><code>var socket = new WebSocket('ws:localhost:8081/../../..');
  </code></pre>
  
  <p>I have been stack for a few days. Please anyone who know about this help me.</p>
  
  <p>Best Regards</p>