问题
I'm trying to understand and experiment with node.js and am interested in how this would go in practice:
Let's say I have an news website with articles that are updated all the time by different users. When a particular article has been updated (someone edited some text) I want it to be updated in other clients' windows as well, real time.
What would be the best structure to accomplish this?
回答1:
Socket.IO: http://socket.io/ Faye: http://faye.jcoglan.com/
来源:https://stackoverflow.com/questions/6386738/node-js-how-would-i-set-up-this-little-service-for-my-web-app