Configure TimeSpans For ServerTimeout And KeepAliveInterval

This commit is contained in:
Alan Moon 2025-07-31 10:18:57 -07:00
parent 72d9b99c4c
commit 1b30636937

View File

@ -54,7 +54,10 @@ namespace QtCNETAPI.Services.GatewayService
await _apiService.RefreshSessionIfInvalid(); await _apiService.RefreshSessionIfInvalid();
return _apiService.SessionToken; return _apiService.SessionToken;
}; };
}); })
.WithStatefulReconnect()
.WithServerTimeout(TimeSpan.FromMinutes(1))
.WithKeepAliveInterval(TimeSpan.FromMinutes(1));
HubConnection = gwConBuilder.Build(); HubConnection = gwConBuilder.Build();
// register events // register events