I want to built a feature on my website for a project where a user can see a new post sent to him without refreshing the page.
What i am doing now is that i call a function every second to see whether a new post has arrived or not? But this is not a good programming practice.
Hence my question...