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

fix: prevent event source from reconnecting after SSE close event #726

Conversation

ryanhopperlowe
Copy link
Contributor

@ryanhopperlowe ryanhopperlowe commented Dec 2, 2024

After a workflow (or workflow authentication) was completed, the Server would close it's connection to the SSE, but the UI never closed the EventSource and would repeatedly attempt to reconnect causing a new api request every few seconds. This fix alleviates this by closing the connection in the UI whenever the server sends a close event

@ryanhopperlowe ryanhopperlowe merged commit f6cbd25 into obot-platform:main Dec 2, 2024
1 check passed
@ryanhopperlowe ryanhopperlowe deleted the fix/admin/prevent-extra-requests-on-sse-close branch December 2, 2024 22:49
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