Dropped streams and reconnections after many days

I do 24x7 screenshare streams for my application. These eventually get
dropped over time, I am assuming because of network glitches. It doesn’t
appear that the Lynkia code crashes.

Is there some one to re-establish a connection from the broadcaster
(screenshare) side back to the server. On chome, the warning window that
the screen is being shared is always still up and if I click on stop
sharing and then re-share it always restarts ok. I just want somhow to
capture that the stream is in fact not working to the server and do that
restart automatically.

Any help would be appreciated.