code: func (c *Client) Connect() error {
  	if c.maxConnAttempts == 1 {
  		return c.connect()
  	}
  	return c.connectWithRetry(c.maxConnAttempts, c.timeBetweenConnAttempts)
  }
docs: // Connect connects to the peer and registers for events on a particular channel.