Parcourir la source

fixed ws issue 1256

Georgi Jhangiryan il y a 6 ans
Parent
commit
96fd0d0e2b
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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) {