Calling a method in two different applications via DDP?


#1

I have two separate applications that perform different things, however I need to sync them somehow on a server to server level. I looked in EventDDP and Cluster however that’s all overkill for me.

How would I solve this with just the board utilities right now?

App1 defines a method called “sync” on the server side.
App2 creates a connection to App1 via DDP.connect and calls the function - also on the server side

So this is what I have:

App 1: server.js

Meteor.method({
 sync: function(message) {
  console.log(message);
 }
});

App 2: server.js

var remote = DDP.connect("http://myapp.meteor.com"); 

remote.call("sync", "Test Message");

Also does the current Meteor hosting environment allows this (****.meteor.com via the deploy command)?