
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
socket-cluster
Advanced tools
clustering socket-io for better performance
this module clusters socket-io based on the number of your system's CPU each new instance of socket-io runs on cluster. when a client connects to socket server 1 you can send a message from socket 2 . very easy to use ! **assume that your system has 8 CPU core you give a base port such as 5000 then 8 socket server will start with ports from 50001 to 5008 ** usage example
npm install socket-cluster
then
var sc = require('socket-cluster');
var sc = new sc({
port:6000,
log:true,
}).socket;
sc.on("connection", function (client,cluster) {
console.log(`new connection :from ${cluster.id}`);
});
sc.on("data", function (obj,cluster) {
console.log(obj);
});
for any question or getting in tocuh : info@mrfarhad.ir
FAQs
socket with clustering
We found that socket-cluster 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.