automatic reconnection for stream websocket