this.setUserId

Server this.setUserId(userId) Source Set the logged in user. Arguments userId String or null The value that should be returned by userId on this connection.

computation.stop

Client computation.stop() Source Prevents this computation from rerunning.

modules

modules Though Meteor 1.2 introduced support for many new ECMAScript 2015 features, one of the most notable omissions was ES2015 import and export syntax. Meteor 1.3 fills that gap with a fully standards-compliant module system that works on both the client and the server, solves multiple long-standing problems for Meteor applications (such as controlling file load order), and yet maintains full backwards compatibility with existing Meteor code. This document explains the usage and key feature

audit-argument-checks

audit-argument-checks This package causes Meteor to require that all arguments passed to methods and publish functions are checked. Any method that does not pass each one of its arguments to check will throw an error, which will be logged on the server and which will appear to the client as a 500 Internal server error. This is a simple way to help ensure that your app has complete check coverage. Methods and publish functions that do not need to validate their arguments can simply run check(ar

api.export

package.js api.export(exportedObjects, [architecture], [exportOptions], exportOptions.testOnly) Export package-level variables in your package. The specified variables (declared without var in the source code) will be available to packages that use your package. If your package sets the debugOnly, prodOnly or testOnly options to true when it calls Package.describe(), then packages that use your package will need to use Package["package-name"].ExportedVariableName to access the value of an

AccountsClient#logout

Client accountsClient.logout([callback]) Source Log the user out. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.

EJSON.newBinary

Anywhere EJSON.newBinary import { EJSON } from 'meteor/ejson' Source Allocate a new buffer of binary data that EJSON can serialize. Arguments size Number The number of bytes of binary data to allocate.

Session.setDefault

Client Session.setDefault(key, value) import { Session } from 'meteor/session' Source Set a variable in the session if it hasn't been set before. Otherwise works exactly the same as Session.set. Arguments key String The key to set, eg, selectedItem value EJSON-able Object or undefined The new value for key

App.setPreference

App.setPreference(name, value, [platform]) Add a preference for your build as described in the Cordova documentation. Arguments name String A preference name supported by Cordova's config.xml. value String The value for that preference. platform String Optional. A platform name (either ios or android) to add a platform-specific preference.

Meteor.status

Client Meteor.status() import { Meteor } from 'meteor/meteor' Source Get the current connection status. A reactive data source.