I'm trying to understand more about long polling to "manipulate" a site in real time, I've seen some videos and I'm thinking so far:
Let's say I have an old date that is in the sql and I echo it.
How will long polling know if the old date will not be the same as it will fetch from time to time according to the setInterval function ...?
Let's say I want to post a blog post in which all the text is in mysql, but of course I publish a new post, and whoever is on the page at the time, will see the post in the hour (ava), then how a long polling code will know the difference between the old and the new publication? Even not to conflict or repeat the same date recorded in sql.
Remembering that I do not know anything about long polling, then I may be asking nonsense ...