I am assigning methods to a Meteor server like so:
In bootstrap.js
Meteor.startup(function () {
Meteor.methods({
foo: function () {
return 1;
},
bar: function () {
// QUESTION: HOW TO CALL Meteor.methods.foo
return 1 + foo;
}
});
});
Meteor.methods
insideMeteor.startup
.