Websocket
Stream data directly to your applications with our websocket integration.
Last updated
Was this helpful?
Stream data directly to your applications with our websocket integration.
Last updated
Was this helpful?
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.
Helius supports all stable Solana Websockets.
You can use these with your Helius WSS URL:
Mainnet – wss://mainnet.helius-rpc.com
Devnet – wss://devnet.helius-rpc.com
WebSocket methods marked as "unstable" in , such as blockSubscribe
, slotsUpdatesSubscribe
and voteSubscribe
are not supported. This could be enabled for dedicated nodes.
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 is finalized
.