Simple IPC library
This requires a bridge to connect all nodes. The bridge can reside in any process.
IPC Transports: Unix Socket TCP
Server should be able to connect on a stateless manner, we have a Unix socket path, and if the file is there, we move on. Else we make new connection.
I suggest you clean up on start. When you get EADDRINUSE, try to connect to the socket. If the socket connection succeeds, another server is running and so this instance should exit. If the connection fails then it is safe to unlink the socket file and create a new one.
var fs = ;var net = ;var server = net;server;server;
DEBUG=* node ./bin/cli --bridge /tmp/kiko4.sock DEBUG=* node example/node1.js DEBUG=* node example/anon.js DEBUG=* node example/node-shout.js
Install the module with:
npm install busybody
var busybody = ;busybody; // "awesome"
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2015 goliatone
Licensed under the MIT license.