Node.js - How would I set up this little service for my web app?

99封情书 提交于 2019-12-08 10:02:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!