
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A set of handlers for rpc-over-ws for PUBSUB using Redis' PUBSUB to scale out.
A set of handlers for rpc-over-ws for PUBSUB using Redis' PUBSUB to scale out.
npm i --save rpc-pubsub
const Redis = require('ioredis')
const redis = new Redis(process.env.REDIS_URL)
const {publish, subscribe, unsubscribe, disconnected, emitter} = require('rpc-pubsub')(redis)
const {server} = require('rpc-over-ws')({ publish, subscribe, unsubscribe })
server.on('client-disconnect', client => disconnected(client))
Note that "this" (the remote client) must be authenticated already with
.clientId and .alias set before these handlers will work.
subscribe({channel}) -> Promise<void>
publish({channel, data}) -> Promise<void>
unsubscribe({channel}) -> Promise<void>
Clients are sent the following JSON when a message is published to a channel on which they are subscribed.
{
"module": "pubsub",
"type": "message",
"channel": string,
"alias": string,
"data": any,
"timestamp": int
}
subscribe (client, channel)unsubscribe (client, channel)publish (client, channel, data)There is no store-and-forward. A client must be connected and subscribed to be sent messages published to a channel.
FAQs
A set of handlers for rpc-over-ws for PUBSUB using Redis' PUBSUB to scale out.
We found that rpc-pubsub 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.