Asynchronous WebSockets for async-std and std
Future
s.
Add this in your Cargo.toml
:
[dependencies]
async-tungstenite = "*"
Take a look at the examples/
directory for client and server examples. You may also want to get familiar with
async-std
if you don't have any experience with it.
This crate is based on tungstenite-rs
Rust WebSocket library and provides async-std 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 the async-std stack.
Originally this crate was created as a fork of tokio-tungstenite and ported to async-std.