You can have multiple distinct applications that use the same DDP connection so that data is shared reactively across applications.
To share a DDP connection:
Main App (running on port 3000):
Posts = new Meteor.Collection("posts");
if(Meteor.isServer){
Meteor.publish("posts", function(){
return Posts.find({});
});
}
if (Meteor.isClient){
Posts.subscribe("posts");
}
Companion App (running on port 3030):
var conn = DDP.connect("http://localhost:3000");
Pictures = new Meteor.Collection("pictures", conn);
if(Meteor.isClient){
conn.subscribe("posts");
}
If you're running both apps on the same box you'll need to specify different ports for each app:
meteor --port 3030
Server 2 Server DDP A pretty entertaining youtube video from Alan Shaw, that this answer is based off.
And I'd recommend reading Meteorhacks' Introduction to DDP
NOTE: DDP connections only work through websockets, so if you have a proxy in between you'll run into issues