ericz %!s(int64=12) %!d(string=hai) anos
pai
achega
19cc170d08
Modificáronse 2 ficheiros con 17 adicións e 17 borrados
  1. 16 16
      README.md
  2. 1 1
      deps/EventEmitter

+ 16 - 16
README.md

@@ -7,25 +7,25 @@ PeerJS wraps the WebRTC implementation to provide a complete, configurable, and
 
 Peer
 
-`<script>
-  var peer = new Peer('someid', {key: 'apikey'});
-  peer.on('connection', function(conn) {
-    conn.on('data', function(data){
-      // Will print 'hi!'
-      console.log(data);
-    });
-  });
-</script>`
+     <script>
+       var peer = new Peer('someid', {key: 'apikey'});
+       peer.on('connection', function(conn) {
+         conn.on('data', function(data){
+           // Will print 'hi!'
+           console.log(data);
+         });
+       });
+     </script>
 
 Connecting peer
 
-`<script>
-  var peer = new Peer('anotherid', {key: 'apikey'});
-  var conn = peer.connect('someid');
-  conn.on('open', function(){
-    conn.send('hi!');
-  }); 
-</script>`
+     <script>
+       var peer = new Peer('anotherid', {key: 'apikey'});
+       var conn = peer.connect('someid');
+       conn.on('open', function(){
+         conn.send('hi!');
+       }); 
+     </script>`
 
 
 

+ 1 - 1
deps/EventEmitter

@@ -1 +1 @@
-Subproject commit 7e4606d166e1a587263a022b388e1232f42cd7d4
+Subproject commit 5c347bfe5cb8ec62ea2872348ab9304ba0c585f8