Skip to main content
All examples use these placeholder env vars:

wscat

Interactive shell, useful for spot-checking that a scope produces events.
After the connected frame, paste:
To replay from a specific cursor:

Node.js (ws)

Minimal client that connects, subscribes to an account scope, tracks the highest seq, and reconnects with ?last_seq= on close 4002.

Python (websockets)

Webhooks comparison

Use the Realtime WebSocket for dashboards and in-memory state. Use Webhooks for systems of record where durable, retried HTTP delivery matters more than latency. The event_types you subscribe to via webhooks are the same type strings emitted on this stream — see the event catalog.