#websocket

websocket-lite

A fast, low-overhead WebSocket client

8 releases

✓ Uses Rust 2018 edition

0.2.4 Apr 15, 2019
0.2.3 Apr 14, 2019
0.2.2 Dec 8, 2018
0.2.1 Oct 26, 2018
0.1.2 Oct 24, 2018

#21 in WebSocket

Download history 10/week @ 2019-04-22 12/week @ 2019-04-29 9/week @ 2019-05-06 18/week @ 2019-05-13 33/week @ 2019-05-20 2/week @ 2019-05-27 8/week @ 2019-06-03 24/week @ 2019-06-10 24/week @ 2019-06-17 75/week @ 2019-06-24 75/week @ 2019-07-01 24/week @ 2019-07-08 9/week @ 2019-07-29

54 downloads per month

MIT license

20KB
393 lines

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

~5MB
~97K SLoC