#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

#22 in WebSocket

Download history 1/week @ 2019-01-31 7/week @ 2019-02-21 12/week @ 2019-02-28 1/week @ 2019-03-07 3/week @ 2019-03-14 33/week @ 2019-03-21 7/week @ 2019-03-28 6/week @ 2019-04-04 27/week @ 2019-04-11 10/week @ 2019-04-18 5/week @ 2019-04-25 18/week @ 2019-05-02 9/week @ 2019-05-09

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

~5.5MB
~99K SLoC