Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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.

2 participants