소스 검색

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);
     }
   });
+
+  this._wss.on("error", function (err) {
+    // handle error
+  })
 };
 
 app._configureWS = function(socket, key, id, token) {