Browse Source

back to open...

Michelle Bu 12 years ago
parent
commit
bb904e841e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/peer.js

+ 1 - 1
lib/peer.js

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