How do we handle the onReady/onError callback in a subscription ? Asteroid.subscribe(name,arg, { onReady: ...
callbacks Function or Object
Optional. May include onError and onReady callbacks. If a function is passed instead of an object, it is interpreted as an onReady callback.
The Asteroid.subscribe method returns a subscription instance, which has a property ready, a promise which is fulfilled "on ready", and rejected "on error".
How do we handle the onReady/onError callback in a subscription ? Asteroid.subscribe(name,arg, { onReady: ...
callbacks Function or Object Optional. May include onError and onReady callbacks. If a function is passed instead of an object, it is interpreted as an onReady callback.
http://docs.meteor.com/#/full/meteor_subscribe