diff --git a/README.md b/README.md index 03d6b8d..e25129f 100644 --- a/README.md +++ b/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. diff --git a/changelog.md b/changelog.md index 8f8987f..5701358 100644 --- a/changelog.md +++ b/changelog.md @@ -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