Meteor.apply

Anywhere Meteor.apply(name, args, [options], (Boolean), [asyncCallback]) import { Meteor } from 'meteor/meteor' Source Invoke a method passing an array of arguments. Arguments name String Name of method to invoke args Array of EJSON-able Objects Method arguments (Boolean) , or undefined options.noRetry (Client only) if true, don't send this method again on reload, simply call the callback an error with the error code 'invocation-failed'. asyncCallback Function Optional ca

Accounts.changePassword

Client Accounts.changePassword(oldPassword, newPassword, [callback]) import { Accounts } from 'meteor/accounts-base' Source Change the current user's password. Must be logged in. Arguments oldPassword String The user's current password. This is not sent in plain text over the wire. newPassword String A new password for the user. This is not sent in plain text over the wire. callback Function Optional callback. Called with no arguments on success, or with a single Error argume

HTTP.get

Anywhere HTTP.get(url, [callOptions], [asyncCallback]) import { HTTP } from 'meteor/http' Source Send an HTTP GET request. Equivalent to calling HTTP.call with "GET" as the first argument. Arguments url String The URL to which the request should be sent. callOptions Object Options passed on to HTTP.call. asyncCallback Function Callback that is called when the request is completed. Required on the client.

Testing

Introduction Testing allows you to ensure your application works the way you think it does, especially as your codebase changes over time. If you have good tests, you can refactor and rewrite code with confidence. Tests are also the most concrete form of documentation of expected behavior, since other developers can figure out how to use your code by reading the tests. Automated testing is critical because it allows you to run a far greater set of tests much more often than you could manually,

DDPRateLimiter

DDPRateLimiter Customize rate limiting for methods and subscriptions. By default, DDPRateLimiter is configured with a single rule. This rule limits login attempts, new user creation, and password resets to 5 attempts every 10 seconds per connection. It can be removed by calling Accounts.removeDefaultRateLimit(). Server DDPRateLimiter.addRule(matcher, numRequests, timeInterval) import { DDPRateLimiter } from 'meteor/ddp-rate-limiter' Source Add a rule that matches against a stream of ev

Blaze.remove

Client Blaze.remove(renderedView) import { Blaze } from 'meteor/blaze' Source Removes a rendered View from the DOM, stopping all reactive updates and event listeners on it. Arguments renderedView Blaze.View The return value from Blaze.render or Blaze.renderWithData.

App.configurePlugin

App.configurePlugin(id, config) Set the build-time configuration for a Cordova plugin. Arguments id String The identifier of the plugin you want to configure. config Object A set of key-value pairs which will be passed at build-time to configure the specified plugin.

AccountsCommon#onLogin

Anywhere accountsClientOrServer.onLogin(func) Source Register a callback to be called after a login attempt succeeds. Arguments func Function The callback to be called when login is successful.

Template.registerHelper

Client Template.registerHelper(name, function) import { Template } from 'meteor/templating' Source Defines a helper function which can be used from all templates. Arguments name String The name of the helper function you are defining. function Function The helper function itself.

Tracker.onInvalidate

Client Tracker.onInvalidate(callback) import { Tracker } from 'meteor/tracker' Source Registers a new onInvalidate callback on the current computation (which must exist), to be called immediately when the current computation is invalidated or stopped. Arguments callback Function A callback function that will be invoked as func(c), where c is the computation on which the callback is registered.