fuckkkk
This commit is contained in:
parent
9ffa9f703c
commit
782d28cba5
12
client.js
12
client.js
|
@ -309,6 +309,12 @@ async function handshake(name, password){
|
||||||
ws.once("open", function(){
|
ws.once("open", function(){
|
||||||
|
|
||||||
deek.emit("login");
|
deek.emit("login");
|
||||||
|
|
||||||
|
ws._socket.setTimeout(10000);
|
||||||
|
ws._socket.on("timeout", function(){
|
||||||
|
|
||||||
|
deek.emit("error", "timed out")
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
ws.once("close", function(){
|
ws.once("close", function(){
|
||||||
|
@ -409,12 +415,6 @@ async function handshake(name, password){
|
||||||
|
|
||||||
deek.emit("error", "code=" + code + " reason=" + reason);
|
deek.emit("error", "code=" + code + " reason=" + reason);
|
||||||
});
|
});
|
||||||
|
|
||||||
ws._socket.setTimeout(10000);
|
|
||||||
ws._socket.on("timeout", function(){
|
|
||||||
|
|
||||||
deek.emit("error", "timed out")
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue