signalr_core icon indicating copy to clipboard operation
signalr_core copied to clipboard

reConnection again and again

Open SamiraAriaeifar opened this issue 4 years ago • 3 comments

I used your package in my app. It is constantly trying to reconnect I do not want it I want to try to reconnect when the internet connection is disconnected or Hub Connection stopped.. How do I fix it? Untitled

SamiraAriaeifar avatar May 12 '21 05:05 SamiraAriaeifar

How do you reconnect?

eli1stark avatar Jun 02 '21 11:06 eli1stark

How to reconnect properly?

birimkulov951 avatar Jun 05 '21 20:06 birimkulov951

How to reconnect properly?

You call withAutomaticReconnect, passing a list of int (time in millesec) or a implementation of RetryPolicy final list = [500,1000,2000,3000] HubConnectionBuilder() .withUrl().withAutomaticReconnect(list)

andredealmei avatar Dec 30 '21 00:12 andredealmei