Added automatic reconnect after connection with SignalR-Hub lost #6

Merged
MarciiTheDev merged 1 commits from bugfix/AutomaticWebsocketReconnect into dev 2024-03-16 18:13:26 +00:00
Showing only changes of commit 830246b2e0 - Show all commits

View File

@ -21,6 +21,7 @@ export class SubscriptionManager {
skipNegotiation: true,
transport: signalR.HttpTransportType.WebSockets
})
.withAutomaticReconnect([0, 2000, 10000, 30000, 60000])
.configureLogging(signalR.LogLevel.None)
.build();
this._hubConnection.start()