Skip to main content

Module ws

Module ws 

Source
Expand description

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.