Sto assegnando metodi per un server Meteor in questo modo:Meteor come chiamare un metodo definito in Meteor.methods()?
In bootstrap.js
Meteor.startup(function() {
Meteor.methods({
foo: function() {
return 1;
},
bar: function() {
// QUESTION: HOW TO CALL Meteor.methods.foo
return 1 + foo;
}
});
});
A proposito, non c'è bisogno di avvolgere '' Meteor.methods' all'interno Meteor.startup'. – debergalis