When to use Meteor.methods and utilizing stubs
here’s another example. say you’re writing a bingo game and you click the button to call “house!”.. in the click event you might call a Method, e.g. Method.call(“callHouse”); this will invoke the server method: // on the server Meteor.methods({ callHouse: function () { if (currentGame.isInProgress) { currentGame.winner = this.userId; currentGame.end(); } } }); if you … Read more