From 9ffa9f703cf16236e40a1371b76f0e01ff88f8af Mon Sep 17 00:00:00 2001 From: lolcat Date: Sun, 3 Nov 2024 01:56:05 -0400 Subject: [PATCH] fucking work please --- client.js | 6 ++++++ 1 file changed, 6 insertions(+) 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") + }); } /*