Gang.js
An inter-process communication, PubSub messaging and Web Proxy process collaboration mesh library for Node.js
Features
- IPC (inter-process communication) using Pub/Sub emitters using axon.js
- Send broadcast messages to all nodes
- HTTP reverse proxy
Install
npm install gang
Example
Setup the alley (Server)
/** * Alley: * - listen for publications from gangsters on subAddress * - proxy http connections requests to httpAddress : httpPort */var alley = ;
Add gangsters (Clients)
/* A gangster */var capone = ; /* connect to alley's subscription socket */ /* Another gangster */var scarface = ; /* connect to alley's subscription socket */
Test
npm test
Methods
...
Events
...