PhápTotodore/socketioxide
A socket.io server implementation in Rust that integrates with the Tower ecosystem and the Tokio stack.
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 tháng
#1 Repository của tháng
#1 Repository của tháng
🚀 Socket.IO server bằng Rust, tích hợp Tower & Tokio
Socketioxide là server Socket.IO bằng Rust hỗ trợ toàn bộ giao thức Socket.IO v4/v5, tích hợp sẵn với Tower ecosystem và Tokio stack.
Socketioxide là một phần mở rộng server Socket.IO được cài đặt trong ngôn ngữ Rust, tích hợp liền mạch với các framework dựa trên Tower như Axum, Warp, Hyper, Salvo, Viz. Dự án hỗ trợ đầy đủ tính năng như namespace, room, ack, binary packets, polling & websocket transports, đồng thời cung cấp các adapter mở rộng hỗ trợ scaling ngang với Redis/Valkey, MongoDB, PostgreSQL.
✨ Điểm nổi bật
- Tích hợp framework: Hỗ trợ Axum, Warp, Hyper, Salvo, Viz với ví dụ echo đi kèm.
- Middleware Tower: Dùng bất kỳ middleware nào dựa trên Tower như CORS, nén, xác thực.
- Scaling ngang: Hỗ trợ adapter Redis/Valkey, MongoDB, PostgreSQL để mở rộng cụm.
- Giao tiếp cụm: Dùng Socketioxide-emitter để giao tiếp giữa các node từ xa.
- Namespace & Room: Hỗ trợ namespace cố định và động cùng các phòng chat.
- Ack & Binary: Hỗ trợ emit kèm ack và truyền gói tin nhị phân.
- Parser linh hoạt: Chọn parser JSON mặc định hoặc Msgpack.
- API trực quan: API giống Axum với extractor để xử lý sự kiện linh hoạt.
💡 Vì sao đáng chú ý
Socketioxide khác biệt so với các server Socket.IO khác ở chỗ nó được thiết kế để tích hợp sâu với Tower và Tokio, cho phép dùng mọẵng middleware hiện có của Tower mà không cần viết lại. Điều này giúp phát triển nhanh tính năng phức tạp như xác thực, nén, hoặc rate limiting chỉ bằng cấu hình. Nhờ kiến trúc adapter mở rộng, Socketioxide dễ dàng mở rộng sang nhiều node và cơ sở dữ liệu khi dự án lớn lên.
#Rust #SocketIO #Tower #Tokio #OpenSource #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.
Multi-transport Rust web framework: HTTP/1.1, HTTP/2, HTTP/3, WebSocket, SSE, gRPC, TCP/UDP and Unix sockets behind one router, on Tokio or Compio.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Build smaller, faster, and more secure desktop and mobile applications with a web frontend.