O'Reilly logo

Getting Started with Meteor.js JavaScript Framework - Second Edition by Isaac Strack

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring publishers

Up to this point, we have been using a Meteor package named autopublish. This means that we haven't had to code specific publish events for changes to be broadcast from the server to the client. This is great for testing, but we want to have a bit more control over what events and documents get published so that we that can improve both performance and security.

If we have a large dataset, we may not want to return the entire collection every time. If autopublish is being used, the entire collection will return, and this can slow things down or expose data that we don't want to expose.

Turning off autopublish

The time has come to turn off autopublish. Temporarily stop your Meteor application (if it's still running) by opening ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required