ajax refresh to display new posts

Try this guide to write an ajax request for your homepage. It’s plenty self explanatory.

Then, using jQuery, make request to the website every 30 seconds or so. There is no way to notify a client about a post being published, the client itself has to check whether there is a new post published or not.

After you have created some code, you can update the question with technical information and i will update the answer for you.