From 31910f162842755c49cf7f644b354c19c92e7169 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 14 Aug 2020 17:25:55 -0700 Subject: [PATCH] Remove auto reconnect, increase reconnectionDelayMax --- app/components/SocketProvider.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/components/SocketProvider.js b/app/components/SocketProvider.js index a09f702ec..3538a7da7 100644 --- a/app/components/SocketProvider.js +++ b/app/components/SocketProvider.js @@ -38,7 +38,7 @@ class SocketProvider extends React.Component { path: "/realtime", transports: ["websocket"], reconnectionDelay: 1000, - reconnectionDelayMax: 10000, + reconnectionDelayMax: 30000, }); this.socket.authenticated = false; @@ -69,12 +69,6 @@ class SocketProvider extends React.Component { // when the socket is disconnected we need to clear all presence state as // it's no longer reliable. presence.clear(); - - if (reason === "io server disconnect") { - // the disconnection was initiated by the server, need to reconnect - // manually, else the socket will automatically try to reconnect - this.socket.connect(); - } }); // on reconnection, reset the transports option, as the Websocket