Update README.md

This commit is contained in:
Michelle Bu 2014-11-01 14:49:27 -07:00
parent 0c8f4b8525
commit 0109713529

View File

@ -90,7 +90,7 @@ app.use('/api', ExpressPeerServer(server, options));
var server = require('http').createServer(app); var server = require('http').createServer(app);
app.use('/api', ExpressPeerServer(server, options)); app.use('/peerjs', ExpressPeerServer(server, options));
server.listen(9000); server.listen(9000);
``` ```
@ -100,14 +100,14 @@ server.listen(9000);
The `'connection'` event is emitted when a peer connects to the server. The `'connection'` event is emitted when a peer connects to the server.
```javascript ```javascript
server.on('connection', function(id) { ... }) server.on('connection', function(id) { ... });
``` ```
The `'disconnect'` event is emitted when a peer disconnects from the server or The `'disconnect'` event is emitted when a peer disconnects from the server or
when the peer can no longer be reached. when the peer can no longer be reached.
```javascript ```javascript
server.on('disconnect', function(id) { ... }) server.on('disconnect', function(id) { ... });
``` ```
## Problems? ## Problems?