sseclient
sseclient copied to clipboard
Disconnected server only detected if graceful disconnected or server restarted
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...
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.