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