소스 검색

back to open...

Michelle Bu 12 년 전
부모
커밋
bb904e841e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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':