shits broken
This commit is contained in:
12
client.js
12
client.js
@@ -405,7 +405,7 @@ async function handshake(name, password){
|
||||
}
|
||||
});
|
||||
|
||||
ws.on("error", function(code, reason)){
|
||||
ws.on("error", function(code, reason){
|
||||
|
||||
deek.emit("error", "code=" + code + " reason=" + reason);
|
||||
});
|
||||
@@ -1114,20 +1114,14 @@ deek.on("close", function(channel){
|
||||
|
||||
console.log("It's over. Disconnected from websocket. Attempting reconnection in 10 seconds");
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
fs.utimesSync(__filename, Date.now(), Date.now());
|
||||
}, 10000);
|
||||
fs.utimesSync(__filename, Date.now(), Date.now());
|
||||
});
|
||||
|
||||
deek.on("error", function(message){
|
||||
|
||||
console.error("Serber error: " + message + ". Attempting reconnection in 10 seconds");
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
fs.utimesSync(__filename, Date.now(), Date.now());
|
||||
}, 10000);
|
||||
fs.utimesSync(__filename, Date.now(), Date.now());
|
||||
});
|
||||
|
||||
// connect to serber
|
||||
|
Reference in New Issue
Block a user