Meteor.call

Anywhere

Meteor.call(name, [arg1, arg2...], [asyncCallback])

import { Meteor } from 'meteor/meteor' Source

Invokes a method passing any number of arguments.

Arguments

name String

Name of method to invoke

arg1, arg2... EJSON-able Object

Optional method arguments

asyncCallback Function

Optional callback, which is called asynchronously with the error or result after the method is complete. If not provided, the method runs synchronously if possible (see below).

doc_Meteor
2016-05-29 17:20:52
Comments
Leave a Comment

Please login to continue.