[][src]Crate websocket_lite

A fast, low-overhead WebSocket client.

This library is optimised for receiving a high volume of messages over a long period. A key feature is that is 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.

Only asynchronous access is provided at present. native_tls provides the TLS functionality for wss://... servers.

This crate is fully conformant with the Autobahn test suite fuzzingserver module.

Structs

ClientBuilder

Establishes a WebSocket connection.

Message

A text string or a block of binary data that can be sent or recevied over a WebSocket.

MessageCodec

Tokio codec for WebSocket messages.

Enums

Opcode

Represents an opcode as defined by the WebSocket protocol.

Traits

AsyncNetworkStream

A type that is both AsyncRead and AsyncWrite.

Type Definitions

Client

Exposes a Sink for sending WebSocket messages, and a Stream for receiving them.

Error

Represents errors that can be exposed by this crate.

Result

Represents results returned by the non-async functions in this crate.