Skip to content
Discussion options

You must be logged in to vote

orpc's Client Retry Plugin does support infinite retries for SSE streams by setting context.retry: Infinity, and you can configure the delay between retries with retryDelay (default is 2000ms, or you can set your own). The retry logic will attempt to reconnect whenever an error occurs, including network failures and most server-side disconnects, and you can further control retry conditions with a custom shouldRetry function. When the stream ends (either by error or completion), the plugin cleans up resources and stops retrying if the abort signal is triggered. This means you generally don't need to manually recurse with your perpetual() pattern for error cases—retries are handled for you…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@yinghaochan
Comment options

@dosubot
Comment options

@yinghaochan
Comment options

Answer selected by unnoq
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant