I'm trying to popup a message when the sse connection of the EventSource get closed from backend. I tried with eventsource.onerror and checked for state CLOSED of EventSource.readyState as well. But non of them get triggered.
Is there any way to identify the sse connection get closed?