I don't know what is happening, but it breaks.
I launch with the following code, which is supposed to auto reconnect,
client.on('authenticated', function () {
console.log('Clusterio | Authenticated!');
instanceManagement(); // start using rcons
}).on('connected', function () {
console.log('Clusterio | Connected!');
// getID();
}).on('disconnected', function () {
console.log('Clusterio | Disconnected!');
// now reconnect
client.connect();
});
I don't know what is happening, but it breaks.
I launch with the following code, which is supposed to auto reconnect,