Skip to content

Commit

Permalink
fix: automatic reconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckeller81 committed Aug 25, 2024
1 parent b0e5b10 commit e680180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/websocket-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class WebSocketService {
async connect() {
this._trackNodeHub = new signalR.HubConnectionBuilder()
.withUrl(this._trackNodeHubUrl)
.withAutomaticReconnect()
.build();

await this._trackNodeHub.start();
Expand Down

0 comments on commit e680180

Please sign in to comment.