recover history when websocket reconnect