|
|
3 년 전 | |
|---|---|---|
| examples | 5 년 전 | |
| patch | 5 년 전 | |
| .gitignore | 6 년 전 | |
| .npmignore | 5 년 전 | |
| README.md | 5 년 전 | |
| build.js | 3 년 전 | |
| build.sh | 3 년 전 | |
| index.js | 5 년 전 | |
| package-lock.json | 3 년 전 | |
| package.json | 3 년 전 |
A port of the PeerJS library which currently only works on browsers. It uses the wrtc node module to provide webrtc functionality and fixes various compatibility issues with NodeJS.
npm i --save peerjs-on-node
Just refer to the PeerJS documentation for a more detailed description of how the module works. You can also take a look at the examples/ directory in this repo to see a small example using peerjs-on-node
Import the module like this
const Peer = require('peerjs-on-node').Peer;
patch/patch.diff for all the modification made to the base PeerJS code and get it running on NodeJS