|
|
3 年之前 | |
|---|---|---|
| examples | 5 年之前 | |
| patch | 5 年之前 | |
| .gitignore | 6 年之前 | |
| .npmignore | 5 年之前 | |
| README.md | 3 年之前 | |
| 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 node-peerjs-client
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('node-peerjs-client').Peer;