Web: don't hammer server trying to reconnect
This commit is contained in:
parent
84e1ca9c67
commit
6f9a422511
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user