Web: don't hammer server trying to reconnect

This commit is contained in:
Sybren A. Stüvel 2022-04-15 17:20:43 +02:00
parent 84e1ca9c67
commit 6f9a422511

View File

@ -55,7 +55,11 @@ export default {
// The disconnection was initiated by the server, need to reconnect // The disconnection was initiated by the server, need to reconnect
// manually. If the disconnect was for other reasons, the socket // manually. If the disconnect was for other reasons, the socket
// should automatically try to reconnect. // should automatically try to reconnect.
socket.connect();
// Intentionally commented out function call, because this should
// happen with some nice exponential backoff instead of hammering the
// server:
// socket.connect();
} }
}); });
this.socket.on("reconnect", (attemptNumber) => { this.socket.on("reconnect", (attemptNumber) => {