浏览代码

fixed ws issue 1256

Georgi Jhangiryan 6 年之前
父节点
当前提交
96fd0d0e2b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/server.js

+ 4 - 0
lib/server.js

@@ -55,6 +55,10 @@ app._initializeWSS = function(server) {
       self._configureWS(socket, key, id, token);
       self._configureWS(socket, key, id, token);
     }
     }
   });
   });
+
+  this._wss.on("error", function (err) {
+    // handle error
+  })
 };
 };
 
 
 app._configureWS = function(socket, key, id, token) {
 app._configureWS = function(socket, key, id, token) {