Server frequently loses Azure SignalR connection [Azure SignalR Service is not connected yet Error]
See original GitHub issueMy ASP.NET Web API (target framework: .NET Framework 4.6.2) project frequently loses connection with Azure SignalR service (free tier). I have followed the example as shown in aspnet ‘chatroom’ example.
My client application is based on Angular JS. Messages are being sent to the clients but after a few hours, the server connection with Azure SignalR service is lost and is not established again.
As far as I understand from the MS Azure SignalR Internals documentation:
If a server connection is disconnected for network issue,
- the server connection starts reconnecting automatically.
The following error is returned back in response:
Azure SignalR Service is not connected yet, please try again later
However, this does not seem to be happening i.e. server connection with Azure SignalR service is not established again.
nuget
packages:
- Microsoft.AspNet.SignalR v2.4.0
- Microsoft.AspNet.SignalR.Core v2.4.0
- Microsoft.AspNet.SignalR.SystemWeb v2.4.0
- Microsoft.Azure.SignalR.AspNet v1.0.0-preview1-10317
- Microsoft.Azure.SignalR.Protocols v1.0.6
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
The latest v1.0.0-preview1-10330 version of ASP.NET should fix the issue.
We’ve identified an issue for ASP.NET that SDK does not reconnect after disconnect. There is a nightly build that contains a fix to this problem:
install-package Microsoft.Azure.SignalR.AspNet -Version 1.0.0-preview1-10325 -Prerelease -Source https://www.myget.org/F/azure-signalr-dev/api/v3/index.json
The fix is planned to be released this week.