question

Max-0531 avatar image
0 Votes"
Max-0531 asked ryanchill edited

SignalR - Streaming behavior while reconnecting

Hello everyone,

I am trying to understand how the SignalR .NET client handles running streams and RPCs while being in reconnecting state. I couldn't find something in the docs helping me. Is there any information available?

The main question is if SignalR queues the messages and transmitts them when the reconnect is finished or will they get dropped?

Thanks in advance!

dotnet-aspnet-signalr
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Max-0531 which SignalR are you asking about, .NET or .NET Core? Client hosted or Azure service?

0 Votes 0 ·

Hi @Max-0531 , I am not sure if you are asking about what happens if transmission disconnection occurs in Signalr.
If this is the case, have you read Understanding and Handling Connection Lifetime Events in SignalR ? If it's something else, could you describe more relevant details?


0 Votes 0 ·

@ryanchill I am talking about the .NET Core Client (SignalR3) and I am not using the Azure Service.

@XuDongPeng-MSFT I am trying to understand what is happening if the client is in reconnecting state. When I am streaming data to a server and the client switches to reconnecting state, will the stream items get queued or will these messages be dropped? The docs you mentioned is for SignalR2, the .NET Framework implementation.. I need Information for SignalR3 (.NET Core).

0 Votes 0 ·

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered Max-0531 commented

Hi @Max-0531,

Thank you for the clarification. For client slide, .NET Core version doesn't buffer any messages and therefore are dropped. You'll have to resend any messages that were in transit once the connection is reestablished.

Regards,
Ryan

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your help! :)

0 Votes 0 ·