Expand description

Contains useful WebSocket type aliases and a default WebSocket implementation of a ProtocolParser.

Structs

Default ProtocolParser implementation for a WebSocket.

Functions

Connect asynchronously to a WebSocket server.

Process a payload of Vec<u8> bytes by deserialising into an ExchangeMessage.

Basic process for a WebSocket CloseFrame message. Logs the payload at trace level.

Basic process for a WebSocket ping message. Logs the payload at trace level.

Basic process for a WebSocket pong message. Logs the payload at trace level.

Process a payload of String by deserialising into an ExchangeMessage.

Type Definitions

Convenient type alias for a tungstenite WebSocketStream.

Communicative type alias for a tungstenite WebSocket Error.

Communicative type alias for a tungstenite WebSocket Message.