Kad WebRTC Transport
A WebRTC transport adapter for Kad.
npm install kad kad-webrtc
var Node = Node;var WebRTC = ;var dht =// ...transport:;dht;
Usage from Node
If you want to use this package from Node,
or if you want to run the tests in this package,
you will need to manually install the
You can do this by running:
npm install firstname.lastname@example.org
The reason for this is that the
wrtc dependency doesn't install correctly
on many platforms.
So we leave it up to the user whether they want to include it or not.
Additionally, you will need to pass a reference to
wrtc to the transport:
var Node = Node;var WebRTC = ;var wrtc = ;var dht =// ...transport:;dht;
To build the examples, run
npm run build-examples.
After that, look at the READMEs in each example directory to see how to run them.