Publish and subscribe

Publish and subscribe

Documentation of Meteor's publication and subscription API.

These functions control how Meteor servers publish sets of records and how clients can subscribe to those sets.

Server
Meteor.publish(name, func)
import { Meteor } from 'meteor/meteor' (ddp-server/livedata_server.js, line 1476)

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 cli