Meteor.methods({ test: function() { if (this.isSimulation) { return 1; // Client wants this to be 1 } else { return 2; // Server wants this to be 2 } } }); Template.hello.events({ 'click button': function () { // Call the test method sync var clientResult = Meteor.apply('test', [], {returnStubValue: true}); Session.set('result', clientResult); } });
See this thread for information.
https://forums.meteor.com/t/how-to-return-value-on-meteor-call-in-client/1277/14