IPC event emitter
Minimal and fast event emitter that communicate with other process through IPC.
Getting started
Install
npm install ipc-events --save
Usage
var spawn = spawn;var Ipc = ; var a = process;var b = ; a; b; a; b;
Listen `once'
{ console; // Hello from "a"!} // Add listener, defined to be triggered "once"b; // myCallback() is invoked and the listener is removeda; // myCallback() is not called because it is no longer listening on this eventa;
Get all listeners of an event
console;
Remove a listener
{ // some code ...} // adda; // removea;
Unit tests
ipc-events
is unit tested with Unit.js
Run the tests
cd node_modules/ipc-events npm test
LICENSE
MIT (c) 2014, Nicolas Tallefourtane.
Author
Nicolas Talle |