12 releases
✓ Uses Rust 2018 edition
new 0.3.2 | Dec 2, 2019 |
---|---|
0.3.2-alpha.6 | Nov 22, 2019 |
0.3.0-alpha.6 | Oct 26, 2019 |
0.2.4 | Apr 15, 2019 |
0.1.2 | Oct 24, 2018 |
#10 in WebSocket
129 downloads per month
47KB
1K
SLoC
websocket-lite and websocket-codec
This repo contains two crates:
- websocket-lite, a fast, low-overhead WebSocket client
- websocket-codec, a Tokio codec implementation of the WebSocket protocol
websocket-lite
This crate is optimised for receiving a high volume of messages over a long period. A key feature is that it makes no memory allocations once the connection is set up and the initial messages have been sent and received; it reuses a single pair of buffers, which are sized for the longest message seen so far.
You can use this crate in both asynchronous (futures-based) and synchronous code.
native_tls
provides the TLS functionality for wss://...
servers.
This crate is fully conformant with the fuzzingserver module in the Autobahn test suite.
websocket-codec
This is a standalone crate that does not do any I/O directly. For a full WebSocket client, see the websocket-lite crate.
async
/await
As of October 2019, the master
branch builds against Rust nightly, and is expected to build against Rust stable 1.40.
It currently references futures-preview = "0.3.0-alpha.19"
and tokio = "0.2.0-alpha.6"
.
Dependencies
~5MB
~108K SLoC