code: func (c *Client) Connect() error {
  	if c.IrcAddress == "" && c.TLS {
  		c.IrcAddress = ircTwitchTLS
  	} else if c.IrcAddress == "" && !c.TLS {
  		c.IrcAddress = ircTwitch
  	}
  
  	dialer := &net.Dialer{
  		KeepAlive: time.Second * 10,
  	}
  
  	var conf *tls.Config
  	// This means we are connecting to "localhost". Disable certificate chain check
  	if strings.HasPrefix(c.IrcAddress, "127.0.0.1:") {
  		conf = &tls.Config{
  			InsecureSkipVerify: true,
  		}
  	} else {
  		conf = &tls.Config{}
  	}
  
  	for {
  		err := c.makeConnection(dialer, conf)
  
  		switch err {
  		case errReconnect:
  			continue
  
  		default:
  			return err
  		}
  	}
  }
docs: // Connect connect the client to the irc server