|
@@ -13,12 +13,12 @@ PeerJS provides a complete, configurable, and easy-to-use peer-to-peer API built
|
|
|
<script src="http://cdn.peerjs.com/0.3/peer.js"></script>
|
|
|
```
|
|
|
|
|
|
-**Create a Peer**
|
|
|
+**Create a Peer**
|
|
|
+Get a [free API key](http://peerjs.com/peerserver). Your id only needs to be unique to the namespace of your API key.
|
|
|
```javascript
|
|
|
var peer = new Peer('pick-an-id', {key: 'myapikey'});
|
|
|
// You can pick your own id or omit the id if you want to get a random one from the server.
|
|
|
```
|
|
|
-Get a [free API key](http://peerjs.com/peerserver)
|
|
|
|
|
|
## Data connections
|
|
|
**Connect**
|