Selaa lähdekoodia

fixed ws issue 1256

Georgi Jhangiryan 6 vuotta sitten
vanhempi
commit
96fd0d0e2b
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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) {