#websocket

websocket-lite

A fast, low-overhead WebSocket client

5 releases

0.2.1 Oct 26, 2018
0.2.0 Oct 25, 2018
0.1.2 Oct 24, 2018
0.1.1 Oct 24, 2018
0.1.0 Oct 23, 2018

#44 in WebSocket

Download history 47/week @ 2018-10-26

15 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
~201K SLoC