op field that identifies the operation or message type.
The optional req_id field can be used to correlate client requests with their corresponding server responses.
Client → Server
| Operation | Purpose |
|---|---|
auth | Authenticate using a JWT access token |
auth_api_key | Authenticate using an API key |
subscribe | Subscribe to one or more topics |
unsubscribe | Unsubscribe from one or more topics |
ping | Keep the connection alive and measure round-trip latency |
Server → Client
| Operation | Purpose |
|---|---|
auth | Authentication result |
subscribed | Subscription confirmation |
unsubscribed | Unsubscription confirmation |
pong | Response to a ping message |
error | Error response |
event | Real-time event payload |