> For the complete documentation index, see [llms.txt](https://docs.transferchain.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.transferchain.io/core-concepts/blockchain/read-node/websocket-client.md). Agents can also search and read this documentation through its [MCP server](https://docs.transferchain.io/~gitbook/mcp).

# WebSocket Client

WebSocket Client in TransferChain SDK

### Overview

The TransferChain WebSocket Client enables real-time communication between applications and the TransferChain blockchain through its proprietary Read Node infrastructure.

By establishing a persistent connection, applications can subscribe to blockchain events and receive instant notifications without continuously polling the network.

### Key Features

* **Real-Time Notifications:** Receive blockchain transaction updates as they occur.
* **Read Node Integration:** Leverage TransferChain's optimized blockchain infrastructure for efficient event delivery.
* **Secure Communication:** Use encrypted WebSocket (WSS) connections and cryptographic signatures for subscription authorization.
* **Address-Based Subscriptions:** Monitor transactions associated with specific TransferChain addresses.
* **Lightweight Integration:** Build event-driven applications without continuous API polling.

### How It Works

1. **Connect:** Establish a secure WebSocket connection to the TransferChain Read Node.
2. **Authenticate:** Authorize subscriptions using blockchain addresses and cryptographic signatures.
3. **Subscribe:** Register the addresses or supported events to monitor.
4. **Listen:** Receive notifications through the persistent connection.
5. **Process:** Handle incoming events using application-defined callbacks.

### Security

TransferChain protects WebSocket communications using encrypted transport channels and cryptographic subscription authorization.

The WebSocket Client operates independently of plaintext file contents, preserving TransferChain's zero-knowledge security architecture.

### Use Cases

* Real-time transaction monitoring and notifications.
* Blockchain authorization and permission updates.
* Event-driven backend applications.
* Enterprise dashboards and audit monitoring.
