-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to Stream All Messages #131
Conversation
} catch (error: CancellationException) { | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only break if it's a cancellation request for the stream? Or should we break for all exceptions? cc @neekolas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retrying pretty aggressively makes sense. Maybe the only exception being if the request was rejected for a bad argument.
This adds the new subscribe2 function to improve the
streamAllMessages
work.Part of xmtp/xmtp-react-native#138