pub async fn run(cfg: WsConfig, tx: Sender<WsEvent>)Expand description
Connect to the relay and forward decoded events to tx until the
caller drops the receiver. Reconnects on socket error with exponential
backoff (1s, 2s, 4s … capped at 30s). Returns when tx is closed.