code: func WithMaxReconnectAttempts(value uint) options.Opt {
  	return func(p options.Params) {
  		if setter, ok := p.(maxReconnectAttemptsSetter); ok {
  			setter.SetMaxReconnectAttempts(value)
  		}
  	}
  }
docs: // WithMaxReconnectAttempts sets the maximum number of times that the client will attempt
  // to reconnect to the server after a connection has been lost. If set to 0 then the
  // client will try until it is stopped.