diff --git a/client.js b/client.js index 6187a5a..72d43cc 100755 --- a/client.js +++ b/client.js @@ -315,6 +315,11 @@ async function handshake(name, password){ deek.emit("error", "timed out") }); + + const keep_alive = setInterval(function(){ + + ws.ping(); + }, 5000); }); ws.once("close", function(){