Merge pull request #235 from Prashoon123/patch-1

Added installation method for yarn
This commit is contained in:
Alex Sosnovskiy 2021-02-12 00:54:14 +03:00 committed by GitHub
commit e048e5ea89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,9 +51,14 @@ $ kubectl run peerjs-server --image=peerjs/peerjs-server --port 9000 --expose --
If you have your own server, you can attach PeerServer.
1. Install the package:
```sh
#$ cd your-project-path
```bash
# $ cd your-project-path
# with npm
$ npm install peer
# with yarn
$ yarn add peer
```
2. Use PeerServer object to create a new server:
```javascript