Added NPM installation instructions.

This commit is contained in:
Eden Tyler-Moss 2019-10-03 11:54:53 +01:00
parent 94616d6e35
commit 8409552275

View File

@ -26,6 +26,10 @@ $> peerjs --port 9000 --key peerjs --path /myapp
Or, create a custom server:
```bash
$> npm install peerjs-server
```
```javascript
const PeerServer = require('peer').PeerServer;
const server = PeerServer({port: 9000, path: '/myapp'});