In case of server error, the base EventSource object does not reconnect. Use the wrapper provided by https://github.com/fanout/reconnecting-eventsource/ to automatically reconnect the EventSource to the SSE server.
The second commit is a refactoring of the notification icon changes to take the new reconnecting EventSource object into account.
In case of server error, the base EventSource object does not reconnect. Use the wrapper provided by https://github.com/fanout/reconnecting-eventsource/ to automatically reconnect the EventSource to the SSE server.
The second commit is a refactoring of the notification icon changes to take the new reconnecting EventSource object into account.