RepositoryTypeScriptCYSíp
CE

centrifugal/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.

515sao
119fork
10issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: centrifuge

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: http-streaming

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: javascript-client

#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.

RepositoryGo
centrifugal/centrifugo

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.

11.1k
Dec 1, 2026
RepositoryTypeScript
deepstreamIO/deepstream.io

deepstream.io server

7.2k
Oct 12, 2026
RepositoryPython
permitio/opal

Policy and data administration, distribution, and real-time updates on top of Policy Agents (OPA, Cedar, ...)

5.5k
Nov 30, 2026
RepositoryGo
centrifugal/centrifuge

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.

1.5k
Nov 25, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryTypeScript
vuejs/vue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

212.6k
Oct 10, 2024
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026