From 283ba5d13da819374f9d3f365c35d3a924c7214b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Thu, 26 Dec 2024 07:18:13 +0000 Subject: [PATCH] refactor(socket): simplify autoReconnect --- frontend/src/plugins/remote/socket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/plugins/remote/socket.ts b/frontend/src/plugins/remote/socket.ts index 9c0581c2828..046bf273324 100644 --- a/frontend/src/plugins/remote/socket.ts +++ b/frontend/src/plugins/remote/socket.ts @@ -40,7 +40,7 @@ class RemotePluginSocket { * Formats the message to be sent to the socket */ private readonly _webSocket = useWebSocket(this._socketUrl, { - autoReconnect: { retries: () => true }, + autoReconnect: true, onConnected: () => { this.sendToSocket('ScheduledTasksInfoStart', this._updateInterval); this.sendToSocket('ActivityLogEntryStart', this._updateInterval);