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