-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Did not send eth_unsubscribe to the node when unsubscribing #3992
Comments
Thank you for bringing this to our attention. Currently our focus is on rewriting the library ( |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment. |
Can you review this pr? #4058 @spacesailor24 |
Hi, the actions are failing @samlior. If you can fix this, one of our team members will review. Thanks. |
As the actual commit in the referenced PR is merge to |
Expected behavior
Send eth_unsubscribe to the node when unsubscribing
Actual behavior
Did not send eth_unsubscribe to the node when unsubscribing
Steps to reproduce the behavior
Environment
npm 7.7.4
node 12.19.0
web3-core-subscriptions@1.3.5
web3-core-requestmanager@1.3.5
Reason
It seems that when
removeSubscription
, it will find thesubscription
object from thethis.subscriptions
according to theid
, but when theconnected
event is emitted, the object has not been added to thethis.subscriptions
. Therefore, whenunsubscribe
is called in theconnected
event,eth_unsubscribe
will not be sent.Suggest
Call
requestManager.addSubscription
before emitconnected
event.The text was updated successfully, but these errors were encountered: