title: Signalr doesn't connect to hubs on firefox and chrome
body: <p>I have a basic MVC application which is integrated with signal R. I'm tracking online users using this application. </p>
  
  <p>Following is my Hub class </p>
  
  <p>public class UserHub : Hub
  {
      static long counter = 0;</p>
  
  <pre><code>public override Task OnConnected()
  {
      //Update Count when User is connected
      counter = counter+1;
      Clients.All.UpdateCount(counter);
      return base.OnConnected();
  }
  
  public override Task OnDisconnected(bool stopCalled)
  {
  
      counter = counter-1;
      Clients.All.UpdateCount(counter);
      return base.OnDisconnected(stopCalled);
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Following is my javascript code </p>
  
  <pre><code>        $.connection.hub.logging = true;
          //setup hubs
          var userHub = $.connection.userHub;
          $.connection.hub.start().done(function () {
  
          });
  
          //function to recieve data from server
          userHub.client.UpdateCount = function (count) {
              $('#counter').text(count);
          }
  </code></pre>
  
  <p>I have registered the in startup.cs class as well. </p>
  
  <p>The problem is signalr Is throwing an error "SignalR: No hubs have been subscribed to.  " When I refresh the page like 5 times, then the signal r is connected to hub and data is getting pulled. </p>
  
  <p>Did anyone face this issue? </p>
  
  <p>Any help is appreciated. </p>
  
  <p>Thank you  </p>