diff --git a/front/src/init/webSocket.ts b/front/src/init/webSocket.ts index 7ad8e6480..e32a55a7f 100644 --- a/front/src/init/webSocket.ts +++ b/front/src/init/webSocket.ts @@ -8,7 +8,7 @@ export const install: InitModule = ({ store }) => { .replace(/^http/, 'ws') const { data, status, open, close } = useWebSocket(url, { - autoReconnect: true, + autoReconnect: import.meta.env.DEV ? { retries: 3 } : true, immediate: false })