
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
ipc-network
Advanced tools
Inter-process communication network, allows multiple node process to exchange messages using unix-socket.
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).
npm i ipc-network --save
import {IpcNetwork, Message} from "ipc-network";
const ipc = new IpcNetwork('process-A');
ipc.on('error', (error: Error) => {
console.log(error.message);
});
ipc.on('message', (data: Message) => {
console.log(`New message from ${data.from}: ${data.message.toString()}`);
});
ipc.startListening();
import {IpcNetwork} from "ipc-network";
const ipc = new IpcNetwork('process-A');
ipc.on('error', (error: Error) => {
console.log(error.message);
});
ipc.send('example content', 'process-B');
import {IpcNetwork} from "ipc-network";
const ipc = new IpcNetwork('process-A');
ipc.on('error', (error: Error) => {
console.log(error.message);
});
ipc.sendRpc('example-job', 'process-B', 500).then((result: Buffer) => {
console.log(`Received job data: ${result.toString()}`);
}).catch((error: Error) => {
console.log(error.message);
});
import {IpcNetwork} from "ipc-network";
const ipc = new IpcNetwork('process-B', (jobName: string, from: string) => {
console.log(`Received new job "${jobName}" from: ${from}`);
return Buffer.from('example jpb results!');
});
ipc.on('error', (error: Error) => {
console.log(error.message);
});
ipc.startListening();
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.
FAQs
Inter-process communication network, allows multiple node process to exchange messages using unix-socket.
The npm package ipc-network receives a total of 1 weekly downloads. As such, ipc-network popularity was classified as not popular.
We found that ipc-network demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.