-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: adds Web3SubscriptionsManager.get_subscription_data_nowait() #95
Conversation
if not self.connection: | ||
raise ConnectionError("Connection not opened") | ||
|
||
message = await asyncio.wait_for(self.connection.recv(), timeout) |
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.
Is this the location where node websockets end up raising after getting randomly dropped?
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.
Looks like it, according to the trace on #84
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.
Nice, we might want to come back later and handle this timeout by reconnecting
What I did
Adds
Web3SubscriptionsManager.get_subscription_data_nowait()
to add the ability to poll without a hanging iterator.Checklist