Merge pull request #235 from Prashoon123/patch-1
Added installation method for yarn
This commit is contained in:
commit
e048e5ea89
@ -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.
|
If you have your own server, you can attach PeerServer.
|
||||||
|
|
||||||
1. Install the package:
|
1. Install the package:
|
||||||
```sh
|
```bash
|
||||||
#$ cd your-project-path
|
# $ cd your-project-path
|
||||||
|
|
||||||
|
# with npm
|
||||||
$ npm install peer
|
$ npm install peer
|
||||||
|
|
||||||
|
# with yarn
|
||||||
|
$ yarn add peer
|
||||||
```
|
```
|
||||||
2. Use PeerServer object to create a new server:
|
2. Use PeerServer object to create a new server:
|
||||||
```javascript
|
```javascript
|
||||||
|
Loading…
x
Reference in New Issue
Block a user