Sípcentrifugal/centrifuge-js
JavaScript client SDK to communicate with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native. Supports WebSocket, HTTP-streaming over Fetch and Readable Stream API, EventSource, WebTransport.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#1 Repository của tuần
📡 Kết nối thời gian thực đa nền tảng với centrifuge-js
SDK JavaScript/TypeScript để giao tiếp với Centrifugo hoặc bất kỳ server nào dựa trên Centrifuge.
centrifuge-js cung cấp một client kết nối tới Centrifugo hoặc bất kỳ server nào dựa trên Centrifuge bằng WebSocket hoặc các giao thức truyền thay thế như HTTP-streaming, SSE/EventSource, WebTransport (thử nghiệm). Hỗ trợ trình duyệt, React Native và Node.js.
✨ Điểm nổi bật
- Đa giao thức: WebSocket, HTTP-streaming, EventSource, WebTransport.
- Đa nền tảng: chạy trên trình duyệt, Node.js và React Native.
- Tuân thủ SDK spec: hành vi nhất quán theo Centrifugo SDK spec.
- Tương thích phiên bản: hỗ trợ Centrifugo v4/v5/v6 và Centrifuge >= 0.25.0.
- Hỗ trợ Protobuf: gửi payload nhị phân khi kích hoạt.
- Subscription linh hoạt: hỗ trợ subscription quản lý bởi server, map subscription, shared poll.
- Batching tin nhắn: tối ưu hiệu suất gửi/nhận nhiều tin nhắn.
- Tùy chỉnh WebSocket: hỗ trợ truyền WebSocket constructor riêng (ví dụ: SockJS).
💡 Vì sao đáng chú ý
centrifuge-js không chỉ là client WebSocket đơn giản — nó cung cấp một lớp trừu tượng đa giao thức, cho phép ứng dụng chuyển đổi giữa WebSocket và các fallback HTTP khi cần. Điều này giúp duy trì kết nối thời gian thực ngay cả trong môi trường có hạn chế mạng như firewall hoặc proxy.
Phù hợp cho các ứng dụng cần cập nhật dữ liệu theo thời gian thực như trò chuyện, dashboard, thông báo hoặc hệ thống giao dịch.
#JavaScript #WebSocket #RealTime #PubSub #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably, socket.io, Phoenix.PubSub, SignalR. Set up once and forever.
Policy and data administration, distribution, and real-time updates on top of Policy Agents (OPA, Cedar, ...)
Real-time messaging library for Go. The simplest way to add feature-rich and scalable WebSocket support to your application. The core of Centrifugo server.
Reverse engineer anything with agents, from app behavior down to native binaries.
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core