You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Sebastian Dröge 9f3a1ee30b Add proxy waiters to allow the Stream to trigger AsyncWrite operations 5 years ago
autobahn test: add autobahn tests 6 years ago
examples Format code using 'cargo fmt' 5 years ago
scripts test: add autobahn tests 6 years ago
src Add proxy waiters to allow the Stream to trigger AsyncWrite operations 5 years ago
tests Format code using 'cargo fmt' 5 years ago
.gitignore Repository created. 8 years ago
.travis.yml Port/rename to async-std / async-tungstenite 5 years ago
Cargo.toml Update to tungstenite 0.9.2 instead of tracking git master 5 years ago
LICENSE Port/rename to async-std / async-tungstenite 5 years ago
README.md Port/rename to async-std / async-tungstenite 5 years ago

README.md

async-tungstenite

Asynchronous WebSockets for async-std and std Futures.

MIT licensed Crates.io Build Status

Documentation

Usage

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.

What is async-tungstenite?

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 TcpStreams from and couple it together with other crates from the async-std stack.

tokio-tungstenite

Originally this crate was created as a fork of tokio-tungstenite and ported to async-std.