![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ipc-link-core
Advanced tools
IPC-Link Core is a lower level version of IPC-Link that is lightning fast and operates with raw buffers as opposed to sending buffered stringified JSON objects. This library has no dependencies and uses built-in modules (net
, events
...) to operate.
In IPC-Link Core, you have "nodes", which can either create a server (and receive messages) or connect to other servers, even both at the same time. Additionally, you have Node#sendTo(socket, data);
which will wait for the socket to reply back.
Check the examples here for working micro IPC-Link Core applications.
hello.js
// This example must be run before interactive/world, since this serves the
// IPC server the other sockets connect to.
const { Node } = require('ipc-link-core');
const node = new Node('hello')
.on('connection', (name, socket) => {
console.log(`Connected to ${name}`);
node.sendTo(socket, 'Hello')
.then(reply => console.log(`Hello ${reply}`));
})
.on('listening', console.log.bind(null, 'Listening'))
.on('message', console.log.bind(null, 'Message'))
.on('error', console.error.bind(null, 'Error'))
.on('socketClose', console.log.bind(null, 'Closed Socket:'))
.serve('hello', 8001);
world.js
// This example depends on hello.js to be running in another process.
// This Node is a socket that replies to hello.js with "world!" when it
// receives "Hello".
const { Node } = require('ipc-link-core');
const node = new Node('world')
.on('message', (message) => {
console.log(`Received data from ${message.from}:`, message);
if (message.data === 'Hello')
message.reply('world!');
})
.on('error', console.error)
.on('connect', () => console.log('Connected!'));
node.connectTo('hello', 8001)
.catch(() => console.log('Disconnected!'));
The differences with IPC-Link are:
net.Socket
, net.Server
and events.EventEmitter
.net.Socket#connect
nor net.Server#listen
, as opposed to what node-ipc does.FAQs
IPC Utilities
The npm package ipc-link-core receives a total of 4 weekly downloads. As such, ipc-link-core popularity was classified as not popular.
We found that ipc-link-core 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.