Like using node.js/express to write blog posts/comments to a topic without reloading the page?

Hello! Just want to know which way to look, and what technologies to use. So, the blog Node.js/Express, the user creates a topic, other users can leave comments and messages to this topic. With the help of which the solution is implemented in node.js at which record shall they fast in real time without reloading the page? I'm still new haven't quite figured out the same with web sockets, there's a reason to look at it or is this chat and communicate in real time more than blagorodnyh services? Thank you very much for your attention and answers!
July 2nd 19 at 13:44
2 answers
July 2nd 19 at 13:46
Solution
If you want to update your comments sockets are not needed. Http request is sent to the adding a comment, the expected response, status 200 when you add on the page a new record. It's all happening in the browser node.js nothing to do with it. If you want to update the comments in real time, then no socket will not do. I advise you to start with socket.io, there is everything you need for a quick start.
July 2nd 19 at 13:48
In the basic form, it is of course web sockets, but will have to implement the logic. Look sharedb (https://github.com/share/sharedb) is a much more advanced thing to sync.

Find more questions by tags JavaScriptNode.jsExpress.js