Browse Source

fixed ws issue 1256

Georgi Jhangiryan 6 năm trước cách đây
mục cha
commit
96fd0d0e2b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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) {