diff --git a/client.js b/client.js index baff496..e9deb74 100755 --- a/client.js +++ b/client.js @@ -404,6 +404,11 @@ async function handshake(name, password){ break; } }); + + ws.on("error", function(code, reason)){ + + deek.emit("error", "code=" + code + " reason=" + reason); + }); } /*