Awesome Open Source
Awesome Open Source


Asynchronous WebSockets for Tokio stack.

MIT licensed Build Status



Add this in your Cargo.toml:

tokio-tungstenite = "*"

Take a look at the examples/ directory for client and server examples. You may also want to get familiar with Tokio if you don't have any experience with it.

What is tokio-tungstenite?

This crate is based on tungstenite-rs Rust WebSocket library and provides Tokio bindings and wrappers for it, so you can use it with non-blocking/asynchronous TcpStreams from and couple it together with other crates from Tokio stack.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
rust (4,299
websocket (435
websockets (305
asynchronous (228
tokio (24

Find Open Source By Browsing 7,000 Topics Across 59 Categories