socketio/socket.io-redis-adapter — a data project — sits at 2.8k GitHub stars in the Data space. Adapter to enable broadcasting of events to multiple separate socket.io server nodes.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
The @socket.io/redis-adapter package allows broadcasting packets between multiple Socket.IO servers.
Table of contents
Supported features
Security notice
Installation
Compatibility table
Usage
With the redis package
With the redis package and a Redis cluster
With the ioredis package
With the ioredis package and a Redis cluster
With Redis sharded Pub/Sub
With redis
With ioredis
Options
Default adapter
Sharded adapter
License
Supported features
Feature
socket.io version
Support
Socket management
4.0.0
:white_check_mark: YES (since version 6.1.0)
Inter-server communication
4.1.0
:white_check_mark: YES (since version 7.0.0)
Broadcast with acknowledgements
4.5.0
:white_check_mark: YES (since version 7.2.0)
Connection state recovery
4.6.0
:x: NO
Security notice
The Redis adapter assumes that Redis is part of the trusted internal infrastructure.
Messages exchanged through Redis Pub/Sub are not signed, encrypted, or authenticated by the adapter. Anyone able to publish to the adapter channels may be able to inject packets or control messages. Redis should therefore not be exposed to untrusted networks or shared with untrusted clients.
Please use Redis ACLs, authentication, TLS, firewall rules, private networking, and dedicated credentials/channel permissions where appropriate.
Installation
npm install @socket.io/redis-adapter
Compatibility table
Redis Adapter version
Socket.IO server version
4.x
1.x
5.x
2.x
6.0.x
3.x
6.1.x
4.x
7.x and above
4.3.1 and above
Usage
With the redis package
import { createClient } from "redis";
import { Server } from "socket.io";
import { createAdapter } from "@socket.io/redis-adapter";
const pubClient = createClient({ url: "redis://localhost:6379" });
const subClient = pubClient.duplicate();
await Promise.all([
pubClient.connect(),
subClient.connect()
]);
const io = new Server({
adapter: createAdapter(pubClient, subClient)
});
io.listen(3000);
How active is development on socketio/socket.io-redis-adapter?
The most recent commit recorded on socketio/socket.io-redis-adapter was 1 month ago, based on the GitHub push timestamp. The repository has 489 forks — one of the better signals of community interest.
How many stars does socketio/socket.io-redis-adapter have?
socketio/socket.io-redis-adapter has 2.8k GitHub stars — refresh the page for the live number, or check github.com/socketio/socket.io-redis-adapter. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is socketio/socket.io-redis-adapter open source?
Yes — socketio/socket.io-redis-adapter ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/socketio/socket.io-redis-adapter.
What else is in the Data space?
socketio/socket.io-redis-adapter is tracked by TopGit under the Data category, alongside 3 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What topics is socketio/socket.io-redis-adapter associated with?
GitHub's repository topics for socketio/socket.io-redis-adapter: "redis", "socket-io", "websocket". TopGit's editorial category is Data.
Where can I see socketio/socket.io-redis-adapter in action?
The project maintains a homepage at https://socket.io/docs/v4/redis-adapter/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about socketio/socket.io-redis-adapter?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/socketio/socket.io-redis-adapter is the definitive source.