Gathering detailed insights and metrics for socket.io-pubsub-3
Gathering detailed insights and metrics for socket.io-pubsub-3
Gathering detailed insights and metrics for socket.io-pubsub-3
Gathering detailed insights and metrics for socket.io-pubsub-3
Socket.io adapter for Google Pub/Sub, allowing to setup a socket.io cluster
npm install socket.io-pubsub-3
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
31 Stars
52 Commits
17 Forks
4 Watchers
10 Branches
6 Contributors
Updated on Jan 05, 2024
Latest Version
3.1.5
Package Id
socket.io-pubsub-3@3.1.5
Unpacked Size
17.95 kB
Size
7.61 kB
File Count
8
NPM Version
6.14.11
Node Version
14.16.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
7
1const pubsub = require('@google-cloud/pubsub'); 2const pubsubClient = pubsub(); 3const io = require('socket.io')(3000); 4const pubsubAdapter = require('socket.io-pubsub'); 5io.adapter(pubsubAdapter(pubsubClient));
By running socket.io with the socket.io-pubsub
adapter you can run
multiple socket.io instances in different processes or servers that can
all broadcast and emit events to and from each other using Google Cloud Pub/Sub.
If you need to emit events to socket.io instances from a non-socket.io process, you should use socket.io-emitter.
pubsub
is a google-cloud pubsub object.
The following options are allowed:
key
: the topic name of the pub/sub events (socket.io
)createSubscriptionOpts
: options for creating a subscriptionThe pub/sub adapter instances expose the following properties
that a regular Adapter
does not
uid
prefix
pubsub
Apache 2.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/16 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
38 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More