Explorar o código

back to open...

Michelle Bu %!s(int64=12) %!d(string=hai) anos
pai
achega
bb904e841e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/peer.js

+ 1 - 1
lib/peer.js

@@ -72,8 +72,8 @@ Peer.prototype._handleServerJSONMessage = function(message) {
       if (!this.id) {
         // If we're just now getting an ID then we may have a queue.
         this.id = message.id;
-        this.emit('id', this.id);
       }
+      this.emit('open', this.id);
       this._processQueue();
       break;
     case 'ERROR':