title: Meteor.call and latency compensation
body: <p>I'm trying to understand why am I getting the error when calling a meteor server method. It works on the server side but it's throwing errors in the browser.</p>
  
  <p>This is my server code in <strong>/server/methods.js</strong> file:</p>
  
  <pre><code>Meteor.methods({
      getTicketSettings: function(){
          var getTicketConfig = function(callback){
              Assets.getText('ticketCustomizing.json', function(error, res){
                  if (error)
                      throw new Meteor.Error({error:'ticket-getCustomizing', reason:'No se pudo recuperar la configuración.'});
                  else callback &amp;&amp; callback(null, JSON.parse(res));
              });
          }
  
          var syncAssetRetrieve = Meteor.wrapAsync(getTicketConfig);
          var result = syncAssetRetrieve();
          return result;
      },
  });
  </code></pre>
  
  <p>And this is in my client/server code in <strong>/lib/initialization.js</strong> file:</p>
  
  <pre><code>App.config.tickets.tipos = new Mongo.Collection('tipos');
  
  Meteor.startup(function(){
      moment.locale('es');
  
       var ticketSettingsObj = Meteor.call('getTicketSettings');
       console.log(ticketSettingsObj);
  
       _.map(ticketSettingsObj.tipos, function(tipo){
           App.config.tickets.tipos.insert(tipo);
       });
  });
  </code></pre>
  
  <p>When I run my application I have the JSON object logged in the console but the browser is showing this error: <em>Uncaught TypeError: Cannot read property 'tipos' of undefined</em> in my <strong>/lib/initialization.js</strong> here:</p>
  
  <pre><code>_.map(ticketSettingsObj.tipos, function(tipo){
           App.config.tickets.tipos.insert(tipo);
       });
  </code></pre>
  
  <p>Obviously I misunderstood something but still wondering...</p>