|
hace 3 años | |
---|---|---|
examples | hace 5 años | |
patch | hace 5 años | |
.gitignore | hace 5 años | |
.npmignore | hace 5 años | |
README.md | hace 3 años | |
build.js | hace 3 años | |
build.sh | hace 3 años | |
index.js | hace 5 años | |
package-lock.json | hace 3 años | |
package.json | hace 3 años |
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;