update readme and changelog
This commit is contained in:
parent
37ee973e55
commit
8757815da9
12
README.md
12
README.md
@ -29,7 +29,7 @@ $> peerjs --port 9000 --key peerjs --path /myapp
|
||||
Or, create a custom server:
|
||||
|
||||
```javascript
|
||||
const PeerServer = require('peer').PeerServer;
|
||||
const { PeerServer } = require('peer');
|
||||
const server = PeerServer({port: 9000, path: '/myapp'});
|
||||
```
|
||||
|
||||
@ -45,7 +45,7 @@ Using HTTPS: Simply pass in PEM-encoded certificate and key.
|
||||
|
||||
```javascript
|
||||
const fs = require('fs');
|
||||
const PeerServer = require('peer').PeerServer;
|
||||
const { PeerServer } = require('peer');
|
||||
|
||||
const server = PeerServer({
|
||||
port: 9000,
|
||||
@ -64,7 +64,7 @@ The option is passed verbatim to the
|
||||
if it is truthy.
|
||||
|
||||
```javascript
|
||||
const PeerServer = require('peer').PeerServer;
|
||||
const { PeerServer } = require('peer');
|
||||
const server = PeerServer({port: 9000, path: '/myapp', proxied: true});
|
||||
```
|
||||
|
||||
@ -73,7 +73,7 @@ const server = PeerServer({port: 9000, path: '/myapp', proxied: true});
|
||||
```javascript
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const ExpressPeerServer = require('peer').ExpressPeerServer;
|
||||
const { ExpressPeerServer } = require('peer');
|
||||
|
||||
app.get('/', (req, res, next) => { res.send('Hello world!'); });
|
||||
|
||||
@ -138,7 +138,7 @@ This will start a peerjs server on port 9000 exposed on port 9000.
|
||||
|
||||
## Problems?
|
||||
|
||||
Discuss PeerJS on our Google Group:
|
||||
https://groups.google.com/forum/?fromgroups#!forum/peerjs
|
||||
Discuss PeerJS on our Telegram chat:
|
||||
https://t.me/joinchat/ENhPuhTvhm8WlIxTjQf7Og
|
||||
|
||||
Please post any bugs as a Github issue.
|
||||
|
@ -2,8 +2,10 @@
|
||||
|
||||
### vNEXT 0.3.0
|
||||
|
||||
* refactoring (add ESLint, split code into small unit) Thanks to @d07RiV @zhou-yg
|
||||
* update deps
|
||||
* Convert project to TypeScript 3.7.3.
|
||||
* Use UUID when generate client id - #152
|
||||
* Refactoring (add ESLint, split code into small unit) Thanks to @d07RiV @zhou-yg
|
||||
* Update deps.
|
||||
|
||||
### 0.2.6
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user