You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support SSE retry field for reconnection timing (SEP-1699)
Add support for the SSE retry field to control client reconnection timing.
When a server sends a retry field in an SSE event, the client now uses
that value instead of exponential backoff for scheduling reconnections.
Also adds support for reconnecting on graceful stream close, allowing
servers to implement polling behavior by closing connections after
sending event IDs.
Changes:
- Capture retry field via EventSourceParserStream onRetry callback
- Use server-provided retry value in _getNextReconnectionDelay
- Schedule reconnection on graceful stream end (not just errors)
0 commit comments