Skip to main content
Low-level WebSocket client for browser and Node.js environments. Used internally by @cosmjs/tendermint-rpc for WebSocket connections and streaming subscriptions.

SocketWrapper

Thin abstraction over the native WebSocket API that works in both browsers and Node.js.

StreamingSocket

WebSocket client that exposes received messages as an xstream Stream.

ReconnectingSocket

WebSocket client with automatic reconnection logic.

QueueingStreamingSocket

WebSocket that queues outgoing messages until the connection is established.

Event Types

ConnectionStatus