|
há 3 anos atrás | |
---|---|---|
examples | há 5 anos atrás | |
patch | há 5 anos atrás | |
.gitignore | há 5 anos atrás | |
.npmignore | há 5 anos atrás | |
README.md | há 3 anos atrás | |
build.js | há 3 anos atrás | |
build.sh | há 3 anos atrás | |
index.js | há 5 anos atrás | |
package-lock.json | há 3 anos atrás | |
package.json | há 3 anos atrás |
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;