mpi

0.1.0 • Public • Published

mpi

mpi is a data syncing tool which helps node servers share dynamic data with clients.

install with npm

npm install mpi

create a server with some data:

var mpi = require('mpi');

var server = mpi.Server(8080, { stuff: 5 });

create a client:

var mpi = require('mpi');

mpi.Client('localhost:8080', function(client){
    
    console.log(client.stuff);    // 5
    
});

client and server are now identical objects and a change in one of them would reflect in the other.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1
  • 0.0.2
    0
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i mpi

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • ido-ofir