title: Server frequently loses Azure SignalR connection
body: <p>My ASP.NET Web API (target framework: .NET Framework 4.6.2) project frequently loses connection with Azure SignalR service (<strong>free tier</strong>). I have followed the example as shown in <strong>aspnet</strong> ‘chatroom’ <a href="https://github.com/aspnet/AzureSignalR-samples/blob/master/aspnet-samples/ChatRoom/Startup.cs" rel="nofollow noreferrer">example</a>.</p>
  
  <p>My client application is based on Angular JS. Messages are being send to the clients but after a few hours, the server connection with Azure SignalR service is lost and is not established again.</p>
  
  <p>As far as I understand from the MS Azure SignalR Internals <a href="https://docs.microsoft.com/bs-latn-ba/azure/azure-signalr/signalr-internals" rel="nofollow noreferrer">documentation</a>:</p>
  
  <blockquote>
    <p>If a server connection is disconnected for network issue,</p>
    
    <ul>
    <li>the server connection starts reconnecting <strong>automatically</strong>.</li>
    </ul>
  </blockquote>
  
  <p>The following error is returned back in response:</p>
  
  <blockquote>
    <p>Azure SignalR Service is not connected yet, please try again later</p>
  </blockquote>
  
  <p>However, this does not seem to be happening i.e. server connection with Azure SignalR service is not established again. </p>
  
  <p><a href="https://i.stack.imgur.com/zFt4j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zFt4j.png" alt="enter image description here"></a></p>
  
  <p><code>nuget</code> packages:</p>
  
  <ul>
  <li>Microsoft.AspNet.SignalR v2.4.0</li>
  <li>Microsoft.AspNet.SignalR.Core v2.4.0</li>
  <li>Microsoft.AspNet.SignalR.SystemWeb v2.4.0</li>
  <li>Microsoft.Azure.SignalR.AspNet v1.0.0-preview1-10317</li>
  <li>Microsoft.Azure.SignalR.Protocols v1.0.6</li>
  </ul>