Skip to content
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

Reconnection logic example in readme #78

Open
1 task done
hartlomiej opened this issue Apr 26, 2021 · 0 comments
Open
1 task done

Reconnection logic example in readme #78

hartlomiej opened this issue Apr 26, 2021 · 0 comments

Comments

@hartlomiej
Copy link

Prerequisites

Summary

Hey! I was thinking it would be great if someone more experienced than myself could code a nice general retry logic in case a steam disconnects and throws a TwitterError error. Would be cool to have it in README instead of "probably should have retry logic here" :)

Motivation

Well, my stream died a few times without me noticing ;) Also would useful when you restart an app and stream is already in use.

Describe alternatives you've considered

I've tried to implement something on my own but I've noticed sometimes the stream doesn't reconnect, so there must be something wrong with my approach. Would rather not post it. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant