Reputation:
This is the function I want to call.
server/function
Meteor.methods({
ok:function () {
for (var i =0;i<10;i++) {
console.log("ok");
}
}
});
Using Meteor.call('ok')
did not work.
The function should print ok to the server console 10 times.
Upvotes: 2
Views: 3314