O'Reilly logo

Getting Started with Meteor.js JavaScript Framework 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 autopublish. Meaning, we haven't had to code specific publish events for any events or collections. This is great for testing, but we want to have a bit more control over what events and documents get published, so we 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 that can slow things down, or it can expose data we don't want to have exposed.

Turning off autopublish

The time has come to turn off autopublish. Temporarily stop your Meteor application (if it's still running) by opening the terminal window you ran the meteor command from. You ...

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