
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
a super simple p2p hub that allows you to send json messages between computers
var hub = require('p2p-hub').connect('json://address_to_a_member');
hub.on('connect', function(from) {
console.log(from, 'connected');
// let's print all current nodes
var all = hub.nodes();
console.log('all nodes:', all);
// let's say hello to him
hub.send(from, {hello:'world'});
});
hub.on('disconnect', function(from) {
console.log(from, 'disconnected');
});
hub.on('message', function(from, message) {
console.log(from, 'says', message);
});
hub.send('json://another_member', {hello:'world'});
You can also multiplex messages to support multiple apps on the same hub
var hub = require('p2p-hub').connect('json://address_to_a_member');
var app = hub.multiplex('app');
app.on('connect', function(from) {
console.log(from, 'connected to app');
console.log('all in app:', app.nodes());
});
app.on('disconnect', function(from) {
console.log(from, 'disconnected from app');
});
app.on('message', function(from, message) {
console.log(from, 'in app says', message);
});
app.send('json://another_member', {hello:'app'});
FAQs
A simple hub for communicating p2p between processes or machines
We found that p2p-hub 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.