|
|
|
|
@ -66,11 +66,10 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
await hubConnection.start();
|
|
|
|
|
hubConnection.onreconnecting(({Exception? error}) {
|
|
|
|
|
print("============== Reconnecting ======================");
|
|
|
|
|
//if (hubConnection.state != HubConnectionState.Connected) {
|
|
|
|
|
data.getUserAutoLoginToken().whenComplete(() {
|
|
|
|
|
buildHubConnection();
|
|
|
|
|
});
|
|
|
|
|
//}
|
|
|
|
|
data.getUserAutoLoginToken().whenComplete(() {
|
|
|
|
|
buildHubConnection();
|
|
|
|
|
data.notifyListeners();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|