jamiewest / signalr_core

ASP.NET Core SignalR Dart Client
https://pub.dev/packages/signalr_core
MIT License
90 stars 62 forks source link

reConnection again and again #55

Closed SamiraAriaeifar closed 8 months ago

SamiraAriaeifar commented 3 years ago

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

eli1stark commented 3 years ago

How do you reconnect?

birimkulov951 commented 3 years ago

How to reconnect properly?

andredealmei commented 2 years ago

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)