docs: public void reconnect(DuplexConnection connection) {
      if (curConnection == null) {
        logger.debug("{} Resumable duplex connection started with connection: {}", tag, connection);
        state = State.CONNECTED;
        onNewConnection(connection);
      } else {
        logger.debug(
            "{} Resumable duplex connection reconnected with connection: {}", tag, connection);
        /*race between sendFrame and doResumeStart may lead to ongoing upstream frames
        written before resume complete*/
        dispatch(new ResumeStart(connection));
      }
    }