O'Reilly logo

Meteor Cookbook 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

Basic safety – turning off autopublish

Quickly and easily accessing your data saves you an enormous amount of time when you're prototyping! The autopublish package, which is installed by default in every newly-created Meteor app, enables you to quickly manage and access your data collections, so that you can churn out great code. When the time comes, however, broadcasting every field in every data collection is inefficient and unsecure. This recipe will show you the basics of removing the autopublish package, and implementing your own publish/subscribe code to keep your app working as intended.

Getting ready

We will create a very basic application, displaying simple text cards on the screen, and then show the effects of autopublish and subscribe ...

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