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

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow tokio-tungstenite

tokio-tungstenite Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of tokio-tungstenite!

Additional Project Details

Programming Language

Rust

Related Categories

Rust WebSocket Libraries

Registered

2 days ago