Explorar o código

update demos for open source server

Michelle Bu %!s(int64=12) %!d(string=hai) anos
pai
achega
665cff72d9
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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');