Skip to content

client.events.subscribe

Package
@torq-finance/sdk
Signature
client.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.