diff --git a/client.js b/client.js index a0d4762..86f2cbb 100755 --- a/client.js +++ b/client.js @@ -409,6 +409,12 @@ async function handshake(name, password){ deek.emit("error", "code=" + code + " reason=" + reason); }); + + ws._socket.setTimeout(10000); + ws._socket.on("timeout", function(){ + + deek.emit("error", "timed out") + }); } /*