Skip to content

Conversation

@pjcdawkins
Copy link

@pjcdawkins pjcdawkins commented Feb 7, 2023

Closes #147

Removes the special case for EOF errors, so that a client will reconnect when the stream is closed with an EOF.

Edit: this is almost a duplicate of #145 / #75 - although that keeps the old behavior by default, with an AutoReconnect flag. I am not sure why the default behavior is desirable (the conversation could happen in any of those issues). (So if this PR is preferred, it closes #75 and closes #145)

@pjcdawkins
Copy link
Author

If implementing a client running long-term expected to go through many reconnections, you would probably also want #152

tobias-urdin added a commit to tobias-urdin/sse that referenced this pull request Feb 23, 2023
sergey-cheperis added a commit to sergey-cheperis/sse that referenced this pull request Jan 6, 2024
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.

Client doesn't reconnect after EOF Feature Request: Let's implement a client.AutoReconnect() method on lost connections.

1 participant