Hi,
Is there a way to get notified when collection is changed by other client? I don’t want to catch the event made by the current client.
The closest thing I can find is to use collection.observeChanges()
, but the bigger problem is that
-
the “added” is triggered for every doc when the query first run, I basicly
need to observe the changes after the local collection has been
initialized. -
I only want to identify the external changes(add/modify/remove), I don’t even want to know the detail delta, only let me know “the current query is outdated by other clients”.
observeHandle = Collenction.find().observeChanges({
// only want to monitor the added event from external source
added: function (id, fields) {
console.log(“observeChanges added”);
}
});
What should I do to solve this problem?
Thank you!