#websocket #stream #future #async-io #async #tokio

ws_stream

Provide AsyncRead/AsyncWrite over WebSockets (both tokio and 0.3)

2 releases

0.0.1 Nov 14, 2019
0.0.0 Jul 12, 2019

#175 in #futures

Unlicense

3KB

ws_stream

This crate has been split in several subcrates:

  • ws_stream_wasm: Creates an idiomatic Rust interface to the browser websocket API (in WASM) and provides AsyncRead/AsyncWrite enabling communication using framing with a codec and treating the connection as a generic TCP stream of bytes.
  • ws_stream_tungstenite: A layer on top of tokio-tungstenite that implements AsyncRead/AsyncWrite, enabling communication using framing with a codec and treating the connection as a generic TCP stream of bytes.

The purpose is to allow network libraries that can work on any AsyncRead/AsyncWrite to function over websockets.

No runtime deps

Features