Przeglądaj źródła

update demos for open source server

Michelle Bu 12 lat temu
rodzic
commit
665cff72d9
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      demo/static/peer.html
  2. 1 1
      demo/static/peer1.html

+ 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({ apikey: 'abc', id: 'michelle', host: 'localhost', port: '9000', debug: true });
+  originator = new Peer({ id: 'michelle', host: 'localhost', port: '9000', debug: true });
   originator.on('ready', function(id) {
     console.log(id);
   });

+ 1 - 1
demo/static/peer1.html

@@ -15,7 +15,7 @@ $(document).ready(function() {
   $('#connect').click(function() {
     var source = $('#source').val();
 
-    sink = new Peer({ apikey: 'abc', host: 'localhost', port: '9000', debug: true });
+    sink = new Peer({ host: 'localhost', port: '9000', debug: true });
       sink.connect(source, { username: 'michelle' }, function(err, connection) {
         x = connection;
         console.log('got connection');