ericz 12 năm trước cách đây
mục cha
commit
d575fd3748
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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');
+    }
   };
 };