Skip to content

Commit 438e26a

Browse files
committed
Remove abrupt close logic
1 parent b08075e commit 438e26a

File tree

1 file changed

+9
-9
lines changed
  • packages/app/src/app/overmind/effects/live

1 file changed

+9
-9
lines changed

packages/app/src/app/overmind/effects/live/index.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,17 @@ class Live {
199199
new Error('Connection loss with live, reason: ' + e.code)
200200
);
201201

202-
if (e.code === 1006) {
203-
// This is an abrupt close, the server probably restarted or carshed. We don't want to overload
204-
// the server, so we manually wait and try to connect;
205-
this.socket.disconnect();
202+
// if (e.code === 1006) {
203+
// // This is an abrupt close, the server probably restarted or carshed. We don't want to overload
204+
// // the server, so we manually wait and try to connect;
205+
// this.socket.disconnect();
206206

207-
const waitTime = 500 + 5000 * Math.random();
207+
// const waitTime = 500 + 5000 * Math.random();
208208

209-
window.setTimeout(() => {
210-
this.socket.connect();
211-
}, waitTime);
212-
}
209+
// window.setTimeout(() => {
210+
// this.socket.connect();
211+
// }, waitTime);
212+
// }
213213
});
214214

215215
this.socket.connect();

0 commit comments

Comments
 (0)