Michelle Bu 12 년 전
부모
커밋
4a497ef778
5개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      demo/static/peer.html
  2. 1 1
      demo/static/peer.js
  3. 1 1
      demo/static/peer1.html
  4. 1 1
      dist/peer.js
  5. 0 0
      dist/peer.min.js

+ 1 - 1
demo/static/peer.html

@@ -11,7 +11,7 @@
 <script type="text/javascript" src="/peer.js"></script>
 <script>
 $(document).ready(function() {
-  originator = new Peer('michelle', { key: 'x8w1becrbresif6r', host: 'localhost', port: '9000', debug: true });
+  originator = new Peer('michelle', { key: '3lcmbh31bezpk3xr', host: 'localhost', port: '9000', debug: true });
   originator.on('open', function(id) {
     console.log(id);
   });

+ 1 - 1
demo/static/peer.js

@@ -911,8 +911,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':

+ 1 - 1
demo/static/peer1.html

@@ -14,7 +14,7 @@ $(document).ready(function() {
   $('#connect').click(function() {
     var source = $('#source').val();
 
-    sink = new Peer({ key: 'x8w1becrbresif6r', host: 'localhost', port: '9000', debug: true });
+    sink = new Peer({ key: '3lcmbh31bezpk3xr', host: 'localhost', port: '9000', debug: true });
     connection = sink.connect(source, { username: 'michelle_spoof' })
     connection.on('data', function(data) {
       console.log(data);

+ 1 - 1
dist/peer.js

@@ -911,8 +911,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':

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/peer.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.