WebSocket PubSub

Standard Solana WebSocket subscriptions through rpc edge.

WebSocket PubSub is the standard Solana JSON-RPC subscription transport. It is the easiest path for Solana SDK compatibility and browser-facing apps.

Endpoint

Most Solana clients derive the WebSocket URL from the HTTP URL. This works with rpc edge:

https://rpc.rpcedge.com?key=YOUR_UUID_KEY
wss://rpc.rpcedge.com?key=YOUR_UUID_KEY

You can also use the explicit WebSocket host:

wss://ws.rpcedge.com?key=YOUR_UUID_KEY
wss://frankfurt.ws.rpcedge.com?key=YOUR_UUID_KEY

Supported subscription families

WebSocket PubSub is intended for standard Solana subscription methods, including account, program, logs, signature, slot, root, vote, block, and transaction-style subscriptions where enabled by plan.

When to use WebSocket

Use WebSocket when:

  • you need compatibility with normal Solana SDKs;
  • you run browser clients or lightweight backend subscriptions;
  • you want account/log/signature updates without adopting a gRPC client.

Use Yellowstone gRPC when you need high-throughput server-side filters, many account/program subscriptions, or lower-latency backend streaming.

WebSocket PubSub · rpc edge docs