# tokio-tungstenite
Asynchronous WebSockets for Tokio stack.
[](./LICENSE)
[](https://crates.io/crates/tokio-tungstenite)
[](https://travis-ci.org/snapview/tokio-tungstenite)
[Documentation](https://docs.rs/tokio-tungstenite)
## Usage
Add this in your `Cargo.toml`:
```toml
[dependencies]
tokio-tungstenite = "*"
```
Take a look at the `examples/` directory for client and server examples. You may also want to get familiar with
[Tokio](https://github.com/tokio-rs/tokio) if you don't have any experience with it.
## What is tokio-tungstenite?
This crate is based on [`tungstenite-rs`](https://github.com/snapview/tungstenite-rs) Rust WebSocket library and provides `Tokio` bindings and wrappers for it, so you
can use it with non-blocking/asynchronous `TcpStream`s from and couple it together with other crates from `Tokio` stack.