Meteor.subscribe

Client Meteor.subscribe(name, [arg1, arg2...], [callbacks]) import { Meteor } from 'meteor/meteor' Source Subscribe to a record set. Returns a handle that provides stop() and ready() methods. Arguments name String Name of the subscription. Matches the name of the server's publish() call. arg1, arg2... EJSON-able Object Optional arguments passed to publisher function on server. callbacks Function or Object Optional. May include onStop and onReady callbacks. If there is an erro

Meteor.status

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

Meteor.startup

Anywhere Meteor.startup(func) import { Meteor } from 'meteor/meteor' Source Run code when a client or a server starts. Arguments func Function A function to run on startup.

Meteor.settings

Anywhere Meteor.settings import { Meteor } from 'meteor/meteor' Source Meteor.settings contains deployment-specific configuration options. You can initialize settings by passing the --settings option (which takes the name of a file containing JSON data) to meteor run or meteor deploy. When running your server directly (e.g. from a bundle), you instead specify settings by putting the JSON directly into the METEOR_SETTINGS environment variable. If the settings object contains a key named p

Meteor.setTimeout

Anywhere Meteor.setTimeout(func, delay) import { Meteor } from 'meteor/meteor' Source Call a function in the future after waiting for a specified delay. Arguments func Function The function to run delay Number Number of milliseconds to wait before calling function

Meteor.setInterval

Anywhere Meteor.setInterval(func, delay) import { Meteor } from 'meteor/meteor' Source Call a function repeatedly, with a time delay between calls. Arguments func Function The function to run delay Number Number of milliseconds to wait between each function call.

Meteor.release

Anywhere Meteor.release import { Meteor } from 'meteor/meteor' Source Meteor.release is a string containing the name of the release with which the project was built (for example, "1.2.3"). It is undefined if the project was built using a git checkout of Meteor.

Meteor.reconnect

Client Meteor.reconnect() import { Meteor } from 'meteor/meteor' Source Force an immediate reconnection attempt if the client is not connected to the server. This method does nothing if the client is already connected.

Meteor.publish

Server Meteor.publish(name, func) import { Meteor } from 'meteor/meteor' Source Publish a record set. Arguments name String Name of the record set. If null, the set has no name, and the record set is automatically sent to all connected clients. func Function Function called on the server each time a client subscribes. Inside the function, this is the publish handler object, described below. If the client passed arguments to subscribe, the function is called with the same argument

Meteor.onConnection

Server Meteor.onConnection(callback) import { Meteor } from 'meteor/meteor' Source Register a callback to be called when a new DDP connection is made to the server. Arguments callback Function The function to call when a new DDP connection is established.