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

airnet/airnet-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

Releases

No releases published

Packages

No packages published