
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
A minimal websocket-only implementation of the socket.io protocol, complete with ES6/ES7 features.
const http = require('http');
const bsock = require('bsock');
const io = bsock.createServer();
const server = http.createServer();
io.attach(server);
io.on('socket', (socket) => {
// Bind = listen for event
socket.bind('bar', (data) => {
console.log('Received bar: %s.', data.toString('ascii'));
});
// Hook = listen for call (event + ack)
socket.hook('foo', async () => {
return Buffer.from('bar');
});
});
server.listen(8000);
const socket = bsock.connect(8000);
socket.on('connect', async () => {
console.log('Calling foo...');
// Call = emit event and wait for ack
const data = await socket.call('foo');
console.log('Response for foo: %s.', data.toString('ascii'));
console.log('Sending bar...');
// Fire = emit event
socket.fire('bar', Buffer.from('baz'));
});
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. </legalese>
See LICENSE for more info.
FAQs
Websocket bike-shed
The npm package bsock receives a total of 2,416 weekly downloads. As such, bsock popularity was classified as popular.
We found that bsock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.