Skip to content
This repository was archived by the owner on Aug 23, 2021. It is now read-only.

Latest commit

 

History

History
29 lines (22 loc) · 423 Bytes

File metadata and controls

29 lines (22 loc) · 423 Bytes

airnet-node

node.js / npm client for airnet

Usage

Install: npm install airnet

Import: airnet = require('airnet')

Example:

//Create the seed node
seed = new airnet(3000);
seed.start();

peer1 = new airnet(3001,
    {
      usefile: true,
      file: "Save.airnet"
    }
);

peer1.start();
//Connect to the seed node
peer1.connect('localhost:3000');