ericz 12 ani în urmă
părinte
comite
d575fd3748
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      lib/socket.js

+ 2 - 1
lib/socket.js

@@ -83,8 +83,9 @@ Socket.prototype._startWebSocket = function() {
   // socket is open.
   this._socket.onopen = function() {
     util.log('Socket open');
-    if (self._id)
+    if (self._id) {
       self.emit('open');
+    }
   };
 };