#websocket

websocket-lite

A fast, low-overhead WebSocket client

6 releases

✓ Uses Rust 2018 edition

0.2.2 Dec 8, 2018
0.2.1 Oct 26, 2018
0.1.2 Oct 24, 2018

#22 in WebSocket

Download history 10/week @ 2018-11-10 8/week @ 2018-11-17 47/week @ 2018-11-24 37/week @ 2018-12-01 25/week @ 2018-12-08 7/week @ 2018-12-15 37/week @ 2018-12-22 1/week @ 2018-12-29 14/week @ 2019-01-05 4/week @ 2019-01-12 6/week @ 2019-01-19 2/week @ 2019-01-26 6/week @ 2019-02-16

124 downloads per month

MIT license

44KB
1K SLoC

websocket-lite

Documentation

A fast, low-overhead WebSocket client.

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.


lib.rs:

A fast, low-overhead WebSocket client.

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.

Dependencies

~5.5MB
~99K SLoC