SignalR fails to connect to server using WebSocket on Chrome
<p>I am using <code>jquery.signalR-2.2.0.js</code> for signalR connection. </p>

<p>I have following code </p>

<pre><code>    var connection = $.hubConnection();
    var proxy = connection.createHubProxy(hubName);

    connection.qs = { 'groupId': groupId };
    proxy.on('connected', function () { });

    connection.logging = true;
    connection.stop();

    connection.transportConnectTimeout = 5000;

    connection.start({ transport: ['webSockets', 'longPolling'] }).done(function () {
        console.log("Connected, transport = " + connection.transport.name);
    })
    .fail(function () { console.log('Could not Connect!'); });
</code></pre>

<p>Now issue when I access my website thru chrome using domain name, I get following error:</p>

<blockquote>
  <p>WebSocket connection to 'ws://xyz/signalr/connect?transport=webSockets&amp;clientProtocol=1.5&amp;groupId=0011600003&amp;connectionToken=nzZP7FOeqXGWVO9gqRZJI3Kl6NBBV%2FSXdgFWR7hvnsNooMr6Qh6vc7YOMzl%2Bb8ExCssRESg4et5mjJ1pQ%2Bb%2BMFPy4nu0aMw9kI7pBzOSTLjzQXLlEVe%2FIqdHj%2Bd7sYpd8nGwA7tMaPBHYxpTt7%2FvbA%3D%3D&amp;connectionData=%5B%7B%22name%22%3A%22spotterenhancementhub%22%7D%5D&amp;tid=3' failed: HTTP Authentication failed; no valid credentials availablestart @ jquery.signalR-2.2.0.min.js:8start @ jquery.signalR-2.2.0.min.js:8d @ jquery.signalR-2.2.0.min.js:8success @ jquery.signalR-2.2.0.min.js:8i @ jquery-2.2.3.min.js:2fireWith @ jquery-2.2.3.min.js:2z @ jquery-2.2.3.min.js:4(anonymous function) @ jquery-2.2.3.min.js:4
  jquery.signalR-2.2.0.min.js:8 </p>
  
  <p>[14:02:22 GMT-0400 (Eastern Daylight Time)] SignalR: Websocket closed.
  jquery.signalR-2.2.0.min.js:8 </p>
  
  <p>[14:02:22 GMT-0400 (Eastern Daylight Time)] SignalR: Closing the Websocket.
  jquery.signalR-2.2.0.min.js:8 </p>
  
  <p>[14:02:22 GMT-0400 (Eastern Daylight Time)] SignalR: webSockets transport failed to connect. Attempting to fall back.
  jquery.signalR-2.2.0.min.js:8 </p>
  
  <p>[14:02:22 GMT-0400 (Eastern Daylight Time)] SignalR: longPolling transport starting.</p>
</blockquote>

<p>Also, this works perfectly with server &amp; domain name thru <strong>Firefox</strong>. Only issue is in <strong>Chrome</strong> &amp; domain name.</p>

<blockquote>
  <p><strong>NOTE</strong>: I am using AD - windows authentication </p>
  
  <p><strong>OS</strong>  : Windows 10</p>
</blockquote>