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

Question: Keepalive for ws subscriptions? #1391

Closed
gabmontes opened this issue Feb 21, 2018 · 0 comments
Closed

Question: Keepalive for ws subscriptions? #1391

gabmontes opened this issue Feb 21, 2018 · 0 comments
Assignees

Comments

@gabmontes
Copy link
Contributor

Current implementation of subscriptions using the websocket provider show the following behavior:

  1. Create a subscription i.e. for new blocks. Do nothing else.
  2. Ensure new blocks are being received.
  3. Take the net connectivity down.
  4. As there are no other packets to send through the provider, the subscription never errores out.
  5. Take the connectivity up again.
  6. The subscription never reconnects as it never detected the error condition.

Is there any plan or any idea on how to implement some kind of keepalive packages so the disconnection is detected by the subscription manager and timely notify the error to the lib user?

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

2 participants