Answer the question
In order to leave comments, you need to log in
What is better to use for real time comments, socket.io or Ajax?
Learning node.js, I want to make the following functionality: a topic is created, the user leaves his comment / opinion under the topic, everything should work without reloading the entire page. What is the best way to implement this in a node.js application? Thanks a lot for the replies!
Answer the question
In order to leave comments, you need to log in
And where is real-time in what you described? :) Usual AJAX, sockets are useless here (although you can use them too). If you want to practice with WebSocket, try making a chat. Or add a feature to the comments like on FB: “Someone else is now typing a comment on this post.”
All applications on sockets work for us, http issue only statics.
Websockets do not load the network with unnecessary headers and allow you to call the server api as local functions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question