class xdk.streaming.StreamConfig
Configuration for streaming connections with retry behavior.
Parameters
__init__
Parameters
on_error : Callable[[[StreamError]
exception xdk.streaming.StreamError
Exception raised for streaming errors with classification.
Parameters
__init__
Parameters
class xdk.streaming.StreamErrorType
Classification of streaming errors for retry decisions.
Parameters
class xdk.streaming.StreamState
Internal state for a streaming connection.
Parameters
__init__
Parameters
last_error : [StreamError]
xdk.streaming.stream_with_retry
Stream data from an endpoint with automatic reconnection and exponential backoff.
This function handles all connection management, including:
- Automatic reconnection on disconnects
- Exponential backoff with jitter for retry delays
- Classification of errors as retryable vs fatal
- Lifecycle callbacks for monitoring connection state