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

Implementing multiserver DDP

The fun doesn't stop with a single client and server DDP connection. Oh no! Indeed, Meteor has invited everybody to the DDP party, and in this recipe, we're going to see how two Meteor servers can speak to each other using DDP.

Getting ready

We will be using the code base from the Using client-only collections recipe, found in this chapter. Please create an instance of this project and start your meteor server.

For this project, we will change the color of the bookmark titles, based on whether the links are secure or not; so we need to make one change to our first project to make the color dependent on the secType property (which we will create in this recipe). Open the templateHelpers.js file, found in the [project root]/client/scripts ...

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