Expand description
AT Protocol WebSocket client with auto-reconnection.
Provides a WebSocket client that automatically reconnects on connection
failure with exponential backoff, and uses a read-side heartbeat
timeout to detect dead connections. HTTP transport is abstracted behind
transport::WebSocketConnector so the same reconnection logic drives
tokio-tungstenite on native and the browser’s native WebSocket on
wasm32-unknown-unknown.
Re-exports§
pub use error::CloseCode;pub use error::DisconnectError;pub use error::WsError;pub use frame::ErrorFrame;pub use frame::Frame;pub use frame::FrameError;pub use frame::MessageFrame;pub use frame::OP_ERROR;pub use frame::OP_MESSAGE;pub use keepalive::WebSocketKeepAlive;pub use keepalive::WebSocketKeepAliveOpts;pub use transport::WebSocketConnector;pub use transport::WebSocketTransport;pub use transport::WsFrame;pub use transport::TungsteniteConnector;