
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
nsq-protocol
Advanced tools
NSQ protocol for Node.js implemented as a through stream
npm install nsq-protocol
var net = require('net');
var protocol = require('nsq-protocol');
var socket = net.connect(4150);
var p = protocol();
socket.pipe(p).pipe(socket);
p.identify({
short_id: 'maf',
long_id: 'mafintosh',
heartbeat_interval: 10000,
user_agent: 'my-client/0.1'
}, function() {
console.log('I identified!');
});
The following messages can be used
protocol.identify(options, [callback]) Send identify. See the spec for optionsprotocol.nop() Send nop messageprotocol.sub(topic, channel, [callback]) Subscribe to a topic on a channelprotocol.pub(topic, data, [callback]) Publish to a topic. Data should be a buffer or stringprotocol.mpub(topic, list_of_data, [callback]) As above but with multiple messagesprotocol.rdy(count) Indicate you are ready to receive messagesprotocol.fin(message_id) Finish a message (when message processing succeeds)protocol.req(message_id, timeout) Re-queue a message (when message processing fails)protocol.touch(message_id) Reset the timeout for an in-flight messageprotocol.cls() Send close messageprotocol.destroy() Destroy the stream.The following events are emitted (excluding standard stream events)
protocol.on('message', message, message_id, attempts) When a message is receivedprotocol.on('heartbeat') When a heartbeat is receivedMIT
FAQs
The NSQ protocol for node.js implemented as a stream
We found that nsq-protocol 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.