This is a migrated thread and some comments may be shown as answers.

SignalR Datasource , reconnect

3 Answers 531 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Rob asked on 07 Mar 2021, 09:16 PM

Hey Guys

What's the approach to use for when clients loose the connection to the Server and they should  try and reconnect to the SignalR data source and resync once it's back?

 

I am using a Grid, but I guess this is a generic question.

 

Many thanks

 

Rob

3 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 07 Mar 2021, 11:33 PM

It does seem to be working out of the box with a few tests. ( I'm only at development stage)

I have seen many cases of being left overnight and I need to refresh the page to get the connection back, but I do see that the connection is re-established when I do tests.

So ignore this and I will try to work out what is happening.

 

Thanks

0
Accepted
Aleksandar
Telerik team
answered on 10 Mar 2021, 03:15 PM

Hello Rob,

If I understand your question correctly then the DataSource does not automatically handle the connection lifetime events. Should you need to configure the timeout and lifetime of the events refer to the SignalR configuration options. Refreshing the page will indeed re-establish a connection.

I hope this helps.

Regards,
Aleksandar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 10 Mar 2021, 10:51 PM

Thanks Aleksandar

 

I found this section to be the best for solving my issues  ( for anyone else searching for this)

https://docs.microsoft.com/en-us/aspnet/signalr/overview/guide-to-the-api/handling-connection-lifetime-events

Thanks again

 

Rob

Tags
General Discussions
Asked by
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Aleksandar
Telerik team
Share this question
or