Need help with tokio-tungstenite?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

snapview
351 Stars 96 Forks MIT License 191 Commits 15 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

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.