node.js module for IPC communication
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
bench.js
index.js
package.json
test-client.js
test-server.js

README.md

Description

A simplified version of wormhole but with changes. Provides auto reconnection support and bi-directional communication.

Installation

npm install erbridge

Usage

var ERBridge = require("erbridge");

var bridge = new ERBridge();
bridge.on("available", function(b) { console.log("AVAILABLE!"); });
bridge.on("unavailable", function(b) { console.log("UNAVAILABLE!"); });
bridge.on("message", function(obj, socketid) { console.log("MESSAGE [%j] on socket [%s]", obj, socketid); );

//bridge.listen(host, port);        // Start Server
//bridge.connect(host, port);       // or connect to server

bridge.send({abc : 123});