I have a simple application where user updates their status and other users can see that. At the first time it will show all the statuses by default. Of course if another user updates the status, the current user will get that status without refreshing the page. Now the question is how can I detect newly added data in my template ?
For example, Currently there are 4 statuses as “TEST 1”, “TEST 2”,“TEST 3” and “TEST 4”. Now if “TEST 5” is added, how do I log into the console that this data newly added.
Thanks for your reply. The code you gave detects on server side. I want on the client side. For example, If other user posts the article and another user is already logged in. As meteor auto refreshes, the newly created blog post will directly appear on the page. I want to log out that new information that client just received. I hope you understand.