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 error, it is passed as an argument to onStop. If a function is passed instead of an object, it is interpreted as an onReady callback.

doc_Meteor
2016-05-29 17:21:05
Comments
Leave a Comment

Please login to continue.