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.

Meteor.logoutOtherClients

Client Meteor.logoutOtherClients([callback]) import { Meteor } from 'meteor/meteor' 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.

Meteor.logout

Client Meteor.logout([callback]) import { Meteor } from 'meteor/meteor' Source Log the user out. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.

Meteor.loginWithPassword

Client Meteor.loginWithPassword(user, password, [callback]) import { Meteor } from 'meteor/meteor' Source Log the user in with a password. Arguments user Object or String Either a string interpreted as a username or an email; or an object with a single key: email, username or id. Username or email match in a case insensitive manner. password String The user's password. callback Function Optional callback. Called with no arguments on success, or with a single Error argument on

Meteor.loginWith<Service>

Client Meteor.loginWith<ExternalService>([options], [callback]) import { Meteor } from 'meteor/meteor' Source Log the user in using an external service. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure. The callback cannot be called if you are using the "redirect" loginStyle, because the app will have reloaded in the meantime; try using client-side login hooks instead. Options requestPermissions A

Meteor.isServer

Anywhere Meteor.isServer import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in server environment.

Meteor.loggingIn

Client Meteor.loggingIn() import { Meteor } from 'meteor/meteor' Source True if a login method (such as Meteor.loginWithPassword, Meteor.loginWithFacebook, or Accounts.createUser) is currently in progress. A reactive data source.

Meteor.isClient

Anywhere Meteor.isClient import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in client environment.

Meteor.isCordova

Anywhere Meteor.isCordova import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in a Cordova mobile environment.

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