pub async fn spawn_ws_session(
cfg: SharedConfig,
stop: Arc<AtomicBool>,
logs: Arc<Mutex<Vec<LogEntry>>>,
busy: Arc<AtomicBool>,
_observers: WorkerObservers,
schedule: SessionSchedule,
) -> Result<()>Expand description
Top-level driver: connect, run a session, reconnect on disconnect,
give up after cfg.ws_reconnect_attempts failures.