|
%!s(int64=3) %!d(string=hai) anos | |
---|---|---|
examples | %!s(int64=5) %!d(string=hai) anos | |
patch | %!s(int64=5) %!d(string=hai) anos | |
.gitignore | %!s(int64=5) %!d(string=hai) anos | |
.npmignore | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
build.js | %!s(int64=3) %!d(string=hai) anos | |
build.sh | %!s(int64=3) %!d(string=hai) anos | |
index.js | %!s(int64=5) %!d(string=hai) anos | |
package-lock.json | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos |
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;