So right now when the server comes back up from a crash, clients reconnect and they “re-subscribe” to the publications. Is there a way to force this action?
Here’s the overly simplified version of what I’m after:
Meteor.publish("people", function () {
self = this;
_.each( GetDataFromWhoKnowsWhere() , function(person) {
self.added("people", person._id, person);
});
self.ready();
})
Meteor.methods({
resetPeople: function () {
// Do something so the client re-subscribes.
// The client's cache should then have the data
// from GetDataFromWhoKnowsWhere().
// As if the server just came back up from a crash.
}
})