Crates.io | websocket-codec |
lib.rs | websocket-codec |
version | 0.5.2 |
source | src |
created_at | 2019-04-14 19:52:06.101216 |
updated_at | 2022-07-24 09:27:18.388157 |
description | A Tokio codec for the websocket protocol |
homepage | |
repository | https://github.com/1tgr/rust-websocket-lite |
max_upload_size | |
id | 127954 |
size | 73,471 |
This repo contains three crates:
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.
This is a standalone crate that does not do any I/O directly. For a full WebSocket client, see the websocket-lite crate.
Provides the server_upgrade
function, which bridges a client's HTTP Upgrade request to the WebSocket protocol.
wsinspect
: views the protocol-level WebSocket frame data from a binary file.
cargo run --example wsinspect -- --help
wsdump
: a basic replica of the wsdump
tool found in the websocket-client
Python package.
cargo run --example wsdump -- --help
Version 0.3.2 and above use std
futures and the async
and await
keywords. They are based on tokio
0.2 and futures 0.3 and the earliest supported compiler is 1.39.
Version 0.2.4 is the release prior to async
/await
. It is based on tokio 0.1 and futures 0.1.