sseclient icon indicating copy to clipboard operation
sseclient copied to clipboard

Disconnected server only detected if graceful disconnected or server restarted

Open ImmoWetzel opened this issue 4 years ago • 1 comments

I do have sometimes servers which are dying without any notice. They are sometimes restarted afterwards but sometimes not. And these disconnected servers are not detected. The session still exists and the the SSECLIENT keeps still connected even if not really any more data recieved.

I would like to get noticed and would the possibility to react...

ImmoWetzel avatar Jun 02 '21 09:06 ImmoWetzel

The complicating factor of this is the fact that users of SSEClient usually want to keep retrying on disconnect to account for blips. I guess what could be added would be an optional toggle or something passed on initialization with maybe a cap on the number of failed attempts. I'll think on this.

TheSandDoctor avatar Jun 09 '25 12:06 TheSandDoctor