Iβm afraid that you donβt have a ready-made callback for the so-called universal subscriptions you mentioned above. Just browse through this part of the Meteor code, where the publish and subscription logic is defined on the server. For convenience, I copy / paste the code below:
ready: function () { var self = this; if (self._isDeactivated()) return; if (!self._subscriptionId) return; // unnecessary but ignored for universal sub if (!self._ready) { self._session.sendReady([self._subscriptionId]); self._ready = true; } }
_subscriptionId specified only for named subscriptions, which will be determined manually using the Meteor.subscribe method. Subscriptions corresponding to null publish functions do not have their own _subscriptionId , as you can see from the above code, the server is not an event trying to send a ready message to the client.
Tomasz lenarcik
source share