code: func ConnectStats(stats adapter.StatsAPI) (*StatsConnection, error) {
  	c := newStatsConnection(stats)
  
  	if err := c.connectClient(); err != nil {
  		return nil, err
  	}
  
  	return c, nil
  }
docs: // Connect connects to Stats API using specified adapter and returns a connection handle.
  // This call blocks until it is either connected, or an error occurs.
  // Only one connection attempt will be performed.