title: Asp.Net Core SignalR reconnectivity issue
body: <p>I am using .Net 5 SignalR, its working and invoking hub method untill I am connected  to internet,
  Once I got disconnected the websocket connection is closed after timeout of 15 seconds and then I am unable to restart the connection again as show in below screen shot.
  We have two types of connections states, hubConnection and httpConnection, hubConnection state is connected but httpconnection states is disconnected.</p>
  <p><a href="https://i.stack.imgur.com/EI6CB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EI6CB.png" alt="enter image description here" /></a></p>
  <p>Now I am unable to start the httpConnection and I am getting below error.</p>
  <p><a href="https://i.stack.imgur.com/xy9MY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xy9MY.png" alt="enter image description here" /></a></p>
  <p>Note: I do not want to use withAutomaticReconnect while creating HubConnection using HubConnectionBuilder, also if I increase timeout then this situation will occur after that timeout.
  Need help.</p>
  <p><a href="https://i.stack.imgur.com/FrMEO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FrMEO.png" alt="enter image description here" /></a></p>
  <p>Code sample:</p>
  <pre><code>var connection = new signalR.HubConnectionBuilder().withUrl(&quot;/chatHub?UserId=10370&quot;)
          .configureLogging(signalR.LogLevel.Error)
          .build();
  function startConnection() {
          connection.start().then(function () {
              console.log(&quot;signalR is connected!&quot;)
              document.getElementById(&quot;sendButton&quot;).disabled = false;
              connection.invoke(&quot;GetConnectionId&quot;).then(connectionid =&gt; {
                  document.getElementById(&quot;connectionId&quot;).textContent = connectionid;
              }).catch((err) =&gt; {
                  console.log(err);
              });
  
          }).catch(function (err) {
              return console.error(err.toString());
          });
  
      }
      function reconnect() {
          setTimeout(startConnection, 2000);
      }
  
      startConnection();
      connection.onclose(function (data) {
          console.log(&quot;Hub connection onclosed | reconnect: &quot; + data);
          reconnect();
      });
  </code></pre>