Procházet zdrojové kódy

update demos for open source server

Michelle Bu před 12 roky
rodič
revize
665cff72d9
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 type="text/javascript" src="/peer.js"></script>
 <script>
 <script>
 $(document).ready(function() {
 $(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) {
   originator.on('ready', function(id) {
     console.log(id);
     console.log(id);
   });
   });

+ 1 - 1
demo/static/peer1.html

@@ -15,7 +15,7 @@ $(document).ready(function() {
   $('#connect').click(function() {
   $('#connect').click(function() {
     var source = $('#source').val();
     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) {
       sink.connect(source, { username: 'michelle' }, function(err, connection) {
         x = connection;
         x = connection;
         console.log('got connection');
         console.log('got connection');