Skip to content

Commit

Permalink
fix: close socket in store direct in the heartbeat timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Sep 11, 2024
1 parent 107a33b commit f01dd42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/webSocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export class WebSocketClient {
if (this.instance?.readyState !== WebSocket.OPEN || !this.store) return

this.close()
this.store?.dispatch('socket/onClose')
}, 10000)
}
}
Expand Down

0 comments on commit f01dd42

Please sign in to comment.