Ajax Http 流模式
我想使用 Rails 实现一个相当简单的聊天应用程序。从理论的角度来看,我认为 ajax 流模式应该是正确的选择。但我不确定它是如何工作的以及这种模式的潜在缺点是什么?
有什么更好的东西我可以使用吗?我的要求是四个人在同一个网页上,并且能够在群聊区域中立即看到彼此的聊天消息。 :)
这是一个简单的测试应用程序之类的事情。任何关于流模式实现的建议或指针都会有帮助。
干杯
I want to do a fairly simple implementation of a chat app using rails. from a theoretical standpoint I feel that ajax streaming pattern should be the way to go. However I am not sure, how it works and what are the potential disadvantages of this pattern?
Is there anything better that I can use. My requirement is to have four people on same web page and be able to see each others chat messages immediately in a group chat area. :)
It's a simple test app kind of thing. Any recommendations or pointers to implementations of streaming pattern would be helpful.
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该让你忙一点:
http://ajaxpatterns.org/HTTP_Streaming
Should keep you busy for a bit:
http://ajaxpatterns.org/HTTP_Streaming