Meteor.Error

Anywhere new Meteor.Error(error, [reason], [details]) import { Meteor } from 'meteor/meteor' Source This class represents a symbolic error thrown by a method. Arguments error String A string code uniquely identifying this kind of error. This string should be used by callers of the method to determine the appropriate action to take, instead of attempting to parse the reason or details fields. For example: // on the server, pick a code unique to this error // the reason field should be

Meteor.disconnect

Client Meteor.disconnect() import { Meteor } from 'meteor/meteor' Source Disconnect the client from the server.

Meteor.clearInterval

Anywhere Meteor.clearInterval(id) import { Meteor } from 'meteor/meteor' Source Cancel a repeating function call scheduled by Meteor.setInterval. Arguments id Number The handle returned by Meteor.setInterval

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).

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

Meteor.absoluteUrl

Anywhere Meteor.absoluteUrl([path], [options]) import { Meteor } from 'meteor/meteor' Source Generate an absolute URL pointing to the application. The server reads from the ROOT_URL environment variable to determine where it is running. This is taken care of automatically for apps deployed to Galaxy, but must be provided when using meteor build. Arguments path String A path to append to the root URL. Do not include a leading "/". Options secure Boolean Create an HTTPS URL. re

meteor update

meteor update Attempts to bring you to the latest version of Meteor, and then to upgrade your packages to their latest versions. By default, update will not break compatibility. For example, let's say packages A and B both depend on version 1.1.0 of package X. If a new version of A depends on X@2.0.0, but there is no new version of package B, running meteor update will not update A, because doing so will break package B. You can pass in the flag --packages-only to update only the packages, and

meteor test-packages

meteor test-packages Test Meteor packages, either by name, or by directory. Not specifying an argument will run tests for all local packages. The results are displayed in an app that runs at localhost:3000 by default. If you need to, you can pass the --settings and --port arguments.

meteor show

meteor show Shows more information about a specific package or release: name, summary, the usernames of its maintainers, and, if specified, its homepage and git URL.

meteor shell

meteor shell When meteor shell is executed in an application directory where a server is already running, it connects to the server and starts an interactive shell for evaluating server-side code. Multiple shells can be attached to the same server. If no server is currently available, meteor shell will keep trying to connect until it succeeds. Exiting the shell does not terminate the server. If the server restarts because a change was made in server code, or a fatal exception was encountered, t