How to close SSE connection from browser #328
Unanswered
charliematters
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The context here is that I'm proxying a SSE endpoint on another server, so when the user leaves the page with the server events on, I want to tidy up and close the connection from remix to the other API. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The abort controller is not closed by useEventSource, the HTTP server is in charge of that, so it may be a bug in your HTTP server. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use useEventSource, but I notice that when it unmounts it closes the source, but that doesn't trigger the abort controller on the server. Is this by design, or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions