Explorar el Código

Update README.md

Eric Zhang hace 12 años
padre
commit
8726925e02
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      README.md

+ 7 - 1
README.md

@@ -17,4 +17,10 @@ Install the library
 Run the server
 
     var PeerServer = require('peer-cloud').PeerServer;
-    var server = new PeerServer({ port: 9000 });
+    var server = new PeerServer({ port: 9000 });
+    
+Connecting to the server from PeerJS
+    
+    // No API key requried when not using cloud server
+    var peer = new Peer('someid', {host: 'localhost', port: 9000});
+