tokio-tungstenite

by snapview

Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation

279 Stars 79 Forks Last release: Not found MIT License 167 Commits 15 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

tokio-tungstenite

Asynchronous WebSockets for Tokio stack.

MIT licensed Crates.io Build Status

Documentation

Usage

Add this in your

Cargo.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 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
TcpStream
s from and couple it together with other crates from
Tokio
stack.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.