Meteor Methods

In Meteor the client calls functions on the server using methods. These methods are similar to RPC (Remote Procedure Calls) and are a way to secure your applications by having the server validate the data sent. Here's how the basic syntax of a method looks like:

Meteor.methods({
  'myMethod': function () {
    // do stuff
  }
});

And here’s how you call the method on the client:

Meteor.call("myMethod");
✖ Clear

πŸ•΅ Search Results

πŸ”Ž Searching...