Skip to main content

Module ws_client

Module ws_client 

Source
Expand description

Re-export cdk-http-client WebSocket client WebSocket client abstraction for CDK

Provides a platform-agnostic WebSocket client. On native targets this uses tokio-tungstenite; on WASM it uses ws_stream_wasm.

Structs§

WsReceiver
WebSocket receiver half
WsSender
WebSocket sender half

Enums§

WsError
Errors that can occur during WebSocket operations

Functions§

connect
Connect to a WebSocket endpoint with optional headers.