flutter_client_sse icon indicating copy to clipboard operation
flutter_client_sse copied to clipboard

Configuration for retry

Open eye-dee opened this issue 1 year ago • 2 comments

Thank you for addressing https://github.com/pratikbaid3/flutter_client_sse/issues/21

I have a use-case, where infinite retry might not be an ideal option. On server 401 response I want to refresh JWT token, so it would be great if there is a chance to configure retry and maybe for my use-case an ability to put 0 retries and complete the stream with some error

eye-dee avatar Aug 06 '24 20:08 eye-dee

This is a great sugggestion. I was also thinking of providing a config object direct from the client using the package. This will allow more control over the newtwork calls.

pratikbaid3 avatar Aug 24 '24 13:08 pratikbaid3

Hi @pratikbaid3 , are you planning to make this? or should I take this one?

localhostd3veloper avatar Aug 01 '25 03:08 localhostd3veloper