WebSocket Overview
Endpoint configuration and subscription patterns for real-time Solana WebSocket subscriptions.
Subscribe to real-time Solana blockchain events using the WebSocket RPC interface.
Endpoint
wss://ws.nln.clr3.orgAuthenticate with the x-api-key header on connect.
Quick Connect
wscat -c wss://ws.nln.clr3.org -H "x-api-key: YOUR_API_KEY"Subscription Pattern
All WebSocket subscriptions follow a three-step lifecycle:
- Subscribe - Send a
*Subscriberequest to start receiving notifications. The response contains a subscription ID. - Receive - Notifications are pushed to your client as events occur on chain.
- Unsubscribe - Send a
*Unsubscriberequest with the subscription ID to stop receiving notifications.