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

WebSocket re-connect #4721

Open
ricmoo opened this issue May 3, 2024 · 1 comment
Open

WebSocket re-connect #4721

ricmoo opened this issue May 3, 2024 · 1 comment
Labels
enhancement New feature or improvement. v6 Issues regarding v6

Comments

@ricmoo
Copy link
Member

ricmoo commented May 3, 2024

Describe the Feature

This is one of the most requested features, and there are several related issues that I will link to this issue, which will help manage the commits, discussions, etc. surrounding it.

Please leave any comments on this issue.

The problem with simply reconnecting and then re-subscribing is that any new incoming events must be stalled until a getLogs is used to backfill any events that occurred since the time that the node disconnected and the new subscription has been established. This is compounded by the problem where the reconnection fails frequently, since the disconnect is often due to the backend throttling the subscriber.

Most of the stubs are already in place to handle this, as it was a planned feature since before v6 was released. The goal is not to affect the current Subscriber API, but there may be some changes necessary. This issue will be kept up to date for those that have custom Subscriber implementations for alternative transports, please keep and eye (and subscribe) to this issue. :)

Code Example

No response

@ricmoo ricmoo added enhancement New feature or improvement. v6 Issues regarding v6 labels May 3, 2024
@fallonp
Copy link

fallonp commented May 19, 2024

Great news, looking forward to testing this out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants