I am writing a piece of software that connects to a Meteor server via DDP to read data.
The problem I am facing is figuring out how to differentiate between a NEW document getting added to a collection and getting notified about already-existing documents.
When I first connect to the server, I get a series of added
messages to populate the clientside collection. I don't know how to differentiate between those messages, and the ones that come later, indicating a new document was added live. This gets even worse when the DDP client needs to reconnect to the server, at which point all of the current documents are again sent as added
messages.