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

Remove the reconnecting event source and add some checks #77

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

pavkam
Copy link
Contributor

@pavkam pavkam commented Nov 9, 2023

After looking again over the implementation of ReconnectingEventSource I have realized we do not need any of its functionality:

  • last_event_id (we do not use that),
  • reconnecting on error (state 2), we do not use that as we deal with our own retry loop.

As a side bonus, added some "sanity" checks on the JSON parsing of incoming messages to avoid escaping the retry cycle even in the worst situations (unlikely that Ably will fail as such but better to be safe than sorry).

@pavkam pavkam self-assigned this Nov 9, 2023
@pavkam pavkam merged commit 735f627 into main Nov 10, 2023
5 checks passed
@pavkam pavkam deleted the remove-reconnecting-event-source branch November 10, 2023 09:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants