v0.0.2Published 5 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.


Smart wrapper for server-to-server(s) DDP.connect().

Meteors.register(appName, {instanceUrl})

Use it on «server» servers to register the app:

// instance #1 setup
Meteors.registerInstance('search', {instanceUrl: 'http://search-01.private/'});

If you have more than one instance for the same app, run this code on every instance:

// instance #2 setup
Meteors.registerInstance('search', {instanceUrl: 'http://search-02.private/'});


Use it on «client» server to connect to the remote Meteor app:

let Search = Meteors.connect('search');

Then call methods normally:

let searchResults ='superDupperSeach', {q: '%D1%85%D1%83%D0%B9'});

Meteors.connect is smart enough to balance instances and reconnect if needed.