Skip to main content

Crate ws_reconnect_client

Crate ws_reconnect_client 

Source

Structs§

MessageStream
A WebSocket message stream that automatically handles PING/PONG and yields parsed messages
PingManager
WebSocket
WebSocket that automatically retries on connection failure
WebSocketClient
High-level WebSocket client with automatic reconnection, ping/pong handling, and JSON support
WebSocketClientBuilder
Builder pattern for WebSocketClient
WsConnectionConfig
Configuration for websocket connection with retry logic

Enums§

Message
An enum representing the various forms of a WebSocket message.
WebSocketError

Functions§

connect_with_retry
Establishes a websocket connection with exponential backoff retry
send_subscription
Send a subscription message over an existing WebSocket connection

Type Aliases§

Result
WsReader
WsWriter