question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SignalR Service client cannot receive messages after re-connect

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
vicancycommented, Feb 21, 2019

It is still unclear to me if the Default is one of the other 2 or not. I do not understand why you suggest to put it back on Default. Classic mode isn’t what I need (since I use an appservice)?

No, Classic mode is actually a mixed mode. You need ‘Default’ mode which prevents the Service from switching automatically to Serverless mode.

Is the client informed that will be connected to a serverless instance? How can I track that?

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…

0reactions
fscavocommented, Jan 14, 2021

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);

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found