Subscribing to our games
At this point in time we will subscribe to the published 'games' straight away (causing all published games to flow down from the server via DDP). In more complex apps we match our subscriptions to routes (like /games
) and only subscribe when we go to that route to save bandwidth. Later on in the book we'll cover this.
client/subscriptions.js
Meteor.subscribe('teams');
Meteor.subscribe('games');