|
преди 3 години | |
---|---|---|
examples | преди 5 години | |
patch | преди 5 години | |
.gitignore | преди 5 години | |
.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;