Enumerator when called without a block), with automatic exponential backoff reconnection, keep-alive heartbeat callbacks, and optional idle-timeout stall detection.
Consuming a stream
Error classification
- Retryable (
err.retryable? == true): connection resets, timeouts (Xdk::StreamIdleTimeoutError),429rate limits, and5xxserver errors — retried automatically with exponential backoff and jitter, resetting the backoff counter whenever an event or keep-alive heartbeat arrives. - Non-retryable (
err.retryable? == false):401/403authentication errors and other4xxclient errors raiseXdk::StreamErrorimmediately.