Ipsee facilitates IPC (Inter Process Communication) in Node.js via UNIX sockets.
Install using NPM:
npm install ipsee --save
Give Ipsee a namespace for your application and subscribe:
var ipsee = ;var ipc = ;
Now you can send and receive messages with your other processes and programs:
Creates a new UNIX socket server and connects to other sockets in the given namespace.
uid is supplied, then subscribe to the socket server referenced, otherwise subscribe to all in the namespace.
Broadcast an event to other connected sockets containing optional data.
End connections with all sockets and unlink the underlying file descriptor.
ipsee() function's second argument is an optional
Directory path where UNIX socket file descriptor should be created. Default:
Print verbose debug messages to the console. Default:
Unique identifier other ipsee instances use to refer to this one. Default:
Aside from your custom event listeners, there are a few built in events.
Emitted when this socket server is listening on the newly minted file descriptor.
Emitted when this socket server has been closed and the underlying file descriptor unlinked.
Emitted when something unexpected happens. Failure to handle this event will result in a