SignalR Service client cannot receive messages after re-connect
See original GitHub issueI have a strange behavior that I don’t know what to do next…
I have a SignalRService connected to my appservice. I also have several clients (UWP app) that connect to SignalRService.
From those clients ~one~ some have this strange behavior. After the restart of the appservice, it succesfully connects to SignalRService and receives all the application messages sent by appservice. But if it reconnects to SignalRService, then from appservice it doesn’t receive any application messages sent to it. However it receives ping messages and is also capable of sending application messages
Message are sent like this:
await m_Hub.Clients.Group(clientId).SendAsync("ServerToClientMessage", jsonSerializedMessage);
Please help!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:24 (10 by maintainers)
Top Results From Across the Web
SignalR client does not receive messages after a ...
We ran into the same issue when SignalR disconnected and fixed the problem on the client's side by completely recreating the signalR hub...
Read more >Troubleshooting guide for Azure SignalR Service
For ASP.NET SignalR, when the client connection drops, it reconnects using the same connectionId for three times before stopping the connection.
Read more >Understanding and Handling Connection Lifetime Events ...
Raised when the disconnect timeout period expires while the SignalR client code is trying to reconnect after losing the transport connection.
Read more >Build Real-time Applications with ASP.NET Core SignalR
Clients attempted to reconnect if a connection was lost, and the server buffered unsent messages and replayed them when a client reconnected ......
Read more >How to Implement SignalR Automatic Reconnect with ...
At this point, we have enabled our client app to automatically reconnect to our server app using SignalR, but we don't get real-time...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, Classic mode is actually a mixed mode. You need ‘Default’ mode which prevents the Service from switching automatically to Serverless mode.
No. “Default” mode helps to prevent that silent switch.
We have a display bug in the portal which may lead to confusion is that: you init your instance and find out that your instance is in “Default” mode, however it actually behaves as “Classic” mode. You need to do a manual switch out and back to make it works as expect…
I’m having the same issue. After reconnecting, the hub is no longer able to send message to javascript client with await this.hubContext.Clients.Client(this.connectionId).SendAsync(m.EventName, data);