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

EJSON.equals

Anywhere EJSON.equals(a, b, [options]) import { EJSON } from 'meteor/ejson' Source Return true if a and b are equal to each other. Return false otherwise. Uses the equals method on a if present, otherwise performs a deep comparison. Arguments a EJSON-able Object b EJSON-able Object Options keyOrderSensitive Boolean Compare in key sensitive order, if supported by the JavaScript implementation. For example, {a: 1, b: 2} is equal to {b: 2, a: 1} only when keyOrderSensitive is fa

EJSON.parse

Anywhere EJSON.parse(str) import { EJSON } from 'meteor/ejson' Source Parse a string into an EJSON value. Throws an error if the string is not valid EJSON. Arguments str String A string to parse into an EJSON value.

HTTP.post

Anywhere HTTP.post(url, [callOptions], [asyncCallback]) import { HTTP } from 'meteor/http' Source Send an HTTP POST request. Equivalent to calling HTTP.call with "POST" 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.

meteor deploy

meteor deploy site Deploy the project in your current directory to Galaxy. You can deploy in debug mode by passing --debug. This will leave your source code readable by your favorite in-browser debugger, just like it is in local development mode. To delete an application you've deployed, specify the --delete option along with the site. You can add information specific to a particular deployment of your application by using the --settings option. The argument to --settings is a file containing

Accounts.verifyEmail

Client Accounts.verifyEmail(token, [callback]) import { Accounts } from 'meteor/accounts-base' Source Marks the user's email address as verified. Logs the user in afterwards. Arguments token String The token retrieved from the verification URL. callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.

onCreated

Client Template.myTemplate.onCreated import { Template } from 'meteor/templating' Source Register a function to be called when an instance of this template is created. Arguments callback Function A function to be added as a callback.

AccountsClient#logoutOtherClients

Client accountsClient.logoutOtherClients([callback]) Source Log out other clients logged in as the current user, but does not log out the client that calls this function. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.

customType.equals

Anywhere customType.equals(other) Source Return true if other has a value equal to this; false otherwise. Arguments other Object Another object to compare this to.

Meteor.userId

Anywhere but publish functions Meteor.userId() import { Meteor } from 'meteor/meteor' Source Get the current user id, or null if no user is logged in. A reactive data source.