#websocket #io #web

tokio-tungstenite

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

8 releases (4 breaking)

0.5.1 Jan 15, 2018
0.5.0 Dec 27, 2017
0.4.0 Oct 9, 2017
0.3.0 Aug 7, 2017
0.1.0 Mar 17, 2017

#5 in WebSocket

Download history 183/week @ 2018-05-06 438/week @ 2018-05-13 225/week @ 2018-05-20 203/week @ 2018-05-27 79/week @ 2018-06-03 57/week @ 2018-06-10 106/week @ 2018-06-17 134/week @ 2018-06-24 219/week @ 2018-07-01 90/week @ 2018-07-08 169/week @ 2018-07-15 269/week @ 2018-07-22 282/week @ 2018-07-29

420 downloads per month

tokio-tungstenite

Asynchronous WebSockets for Tokio stack.

MIT licensed Crates.io Build Status

Documentation

Usage

First, you need to add this in your Cargo.toml:

[dependencies]
tokio-tungstenite = "*"

Next, add this to your crate:

extern crate 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 TcpStreams from and couple it together with other crates from tokio stack.

MIT license

Dependencies

  • dev url 1.6.0

Reverse deps