Websocket
Stream data directly to your applications with our websocket integration.
Websockets allow for two-way communication between a client and a server. Unlike traditional request-response models, Websockets keep a persistent connection open, enabling real-time data exchange. This is perfect for applications that require instant updates, such as chat apps, online games and marketplaces.
Standard Websockets
RapidNode supports all stable Solana Websockets.
You can use these with your RapidNode WSS URL:
Mainnet –
wss://mainnet.rapidnode-rpc.com
Devnet –
wss://devnet.rapidnode-rpc.com
After connecting to the websocket:
Submit subscription requests to the websocket using the methods.
Multiple subscriptions may be active at once.
Many subscriptions take the optional
commitment
parameter, defining how finalized a change should be to trigger a notification. For subscriptions, if commitment is unspecified, the default value isfinalized
.
Last updated