Meteor Methods

While this tutorial has content that we believe is of great benefit to our community, we have not yet tested or edited it to ensure you have an error-free learning experience. It's on our list, and we're working on it! You can help us out by using the "report an issue" button at the bottom of the tutorial.

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:

  'myMethod': function () {
    // do stuff

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

Creative Commons License