Node.js - 我如何为我的网络应用程序设置这个小服务? [英] Node.js - How would I set up this little service for my web app?

查看:107
本文介绍了Node.js - 我如何为我的网络应用程序设置这个小服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试理解并尝试使用 node.js ,并且我对这将如何实践感兴趣:

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.

实现这一目标的最佳结构是什么?

推荐答案

Socket.IO: http://socket.io/
Faye: http://faye.jcoglan.com/

Socket.IO: http://socket.io/ Faye: http://faye.jcoglan.com/

这篇关于Node.js - 我如何为我的网络应用程序设置这个小服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆