tokio-tungstenite is a Rust library that connects the Tungstenite WebSocket implementation with the Tokio asynchronous runtime. It lets developers build non-blocking WebSocket clients and servers using Tokio’s async networking model. The crate wraps asynchronous TCP streams and upgrades them into WebSocket streams that integrate naturally with Rust futures and async tasks. It is useful for real-time services, streaming applications, chat systems, gateways, backend infrastructure, and any Rust project that needs WebSocket communication without blocking threads. Because it builds on Tungstenite, it inherits a standards-focused WebSocket protocol foundation while adding Tokio compatibility. It is a practical choice for Rust developers who need efficient, event-driven WebSocket networking.
Features
- Tokio-based WebSocket support
- Asynchronous client and server workflows
- Integration with Rust futures
- Tungstenite protocol foundation
- Non-blocking TCP stream handling
- Real-time Rust networking use cases