socketio/socket.io-redis-adapter hiện có 2.8k sao trên GitHub, viết chủ yếu bằng TypeScript. Adapter to enable broadcasting of events to multiple separate socket.io server nodes.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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);
socketio/socket.io-redis-adapter thuộc nhóm Data trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về socketio/socket.io-redis-adapter ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/socketio/socket.io-redis-adapter là nguồn chính thức.
socketio/socket.io-redis-adapter có bao nhiêu sao?
socketio/socket.io-redis-adapter có 2.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/socketio/socket.io-redis-adapter. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
socketio/socket.io-redis-adapter có những chủ đề gì?
GitHub topics của socketio/socket.io-redis-adapter: "redis", "socket-io", "websocket". TopGit xếp repo vào nhóm Data.
socketio/socket.io-redis-adapter có phải mã nguồn mở không?
Có — socketio/socket.io-redis-adapter phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/socketio/socket.io-redis-adapter.
socketio/socket.io-redis-adapter có trang demo không?
Dự án có trang chủ ở https://socket.io/docs/v4/redis-adapter/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
socketio/socket.io-redis-adapter còn đang phát triển không?
Commit gần nhất trên socketio/socket.io-redis-adapter là 1 tháng trước (theo timestamp GitHub). Repo có 489 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc socket.io-redis-adapter có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về socket.io-redis-adapter.