Docs

client.events.subscribe

Subscribe to authenticated WebSocket events with cursor resume.

Package@torq-finance/sdk
Signatureclient.events.subscribe(onEvent, { eventTypes?, cursor? })

Behavior

Obtains a short-lived stream token, reconnects with bounded backoff, sends heartbeats, and tracks the latest event cursor.

Security boundary

Webhook and stream delivery are at-least-once. Deduplicate by event or delivery identifiers in your consumer.

See the API Reference for the governed endpoint contract and the workflow guide for canonical completion semantics.