when the viewer loses the websocket connection for a while it is not recovering. We should improve this