p2p-mesh-network
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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.

/p2p-mesh-network/

    Package Sidebar

    Install

    npm i p2p-mesh-network

    Weekly Downloads

    0

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    45.9 kB

    Total Files

    19

    Last publish

    Collaborators

    • tomvaneyck