How to stop sending SSE to disconnected client? #2979
Unanswered
SuperCuber
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following simple code:
And I have in my client a simple loop that sets up an event listener. The events arrive properly, but when I call
eventSource.close()in the client the server keeps printing that the pings are being sent, despite the client no longer listening to them.How should I detect this and stop the useless processing on the server side?
Beta Was this translation helpful? Give feedback.
All reactions