From 96fd0d0e2b92c67feb383cf8026cbb4d44d10b88 Mon Sep 17 00:00:00 2001 From: Georgi Jhangiryan Date: Fri, 30 Nov 2018 02:38:50 +0400 Subject: [PATCH] fixed ws issue 1256 --- lib/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/server.js b/lib/server.js index e13e0dc..b0e75c3 100644 --- a/lib/server.js +++ b/lib/server.js @@ -55,6 +55,10 @@ app._initializeWSS = function(server) { self._configureWS(socket, key, id, token); } }); + + this._wss.on("error", function (err) { + // handle error + }) }; app._configureWS = function(socket, key, id, token) {