p2p-mesh-network
v0.1.2
Published
A peer to peer mesh networking module.
Downloads
3
Readme
p2p-mesh-network
Make a peer to peer mesh network over WebRTC and send any type of data from browser to browser.
Perfect for ditributed applications where nodes can appear or disappear without warning.
Quick start
Import this library in your project, make a new node and connect to others to establish a network. Then just send any data you like. Find the npm package here.
import { Node } from "p2p-mesh-network";
let node = new Node();
node.connectToPeer("address of other node");
node.sendData("someData")
More information
Go to the documentation for information about the interface and explanation of some inner workings.