#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

#8 in WebSocket

Download history 5/week @ 2018-10-23 54/week @ 2018-10-30 47/week @ 2018-11-06 20/week @ 2018-11-13 11/week @ 2018-11-20 13/week @ 2018-11-27 77/week @ 2018-12-04 15/week @ 2018-12-11 8/week @ 2018-12-18 122/week @ 2018-12-25 1/week @ 2019-01-01 9/week @ 2019-01-08

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

~8.5MB
~203K SLoC