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
onStopandonReadycallbacks. If there is an error, it is passed as an argument toonStop. If a function is passed instead of an object, it is interpreted as anonReadycallback.
Please login to continue.