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