ipc-network
Inter-process communication network, allows multiple node process to exchange messages using fast datagram unix-socket. Also support RPC request (command is send to another process, and response is returned as a Promise, resolved when response arrives).
Installation
npm i ipc-network --save
Examples
Start listening for messages
; ; ipc.on'error',; ipc.on'message',; ipc.startListening;
Sending messages
; ; ipc.on'error',; ipc.send'example content', 'process-B';
Sending RPC (requesting job)
; ; ipc.on'error',; ipc.sendRpc'example-job', 'process-B', 500.then.catch;
Receiving job
; ; ipc.on'error',; ipc.startListening;
Additional information
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.