
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
Minimalist websocket broadcast server and browser client
npm install --save lrio
var http = require('http');
var lrio = require('lrio');
var server = http.createServer();
var A = lrio(server, 'myChannelA');
var B = lrio(server, 'myChannelB');
server.listen(8080);
// Broadcast message on myChannelA
A.broadcast({my:42})
// Broadcast message on myChannelB
B.broadcast({foo:'bar'})
// Other events :
A.on('join', function(client) {})
A.on('leave', function(client) {})
Notice that client are WebSocketConnection instances
var lrio = require('lrio');
var A = lrio('myChannelA');
var B = lrio('myChannelB');
A.on('message', function(message) { console.log(message) })
B.on('message', function(message) { console.log(message) })
// Other events:
A.on('open', function() {})
A.on('close', function() {})
A.on('error', function() {})
A.close(); // Close websocket
A.connect(); // Re-connect (only if closed)
The MIT license • Novadiscovery
FAQs
Minimalist websocket broadcast server and client
The npm package lrio receives a total of 8 weekly downloads. As such, lrio popularity was classified as not popular.
We found that lrio 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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.