Extending DDP.connect


I am using DDP.connect to communicate between two meteor servers. DDP.connect returns an object with a method called status. When status is called it returns an object which is reactive but since there is no autorun/tracker on the server it is impossible to know when the connection actually happened unless you do all that by yourself.

There is a Meteor.onConnection available but in documentation i do not see anything like this when using DDP.connect.

Shouldn’t DDP.connect also provide some kind of callback like onConnection?


Seems like DDP.connect does actually take options, it’s just undocumented: