Ajax Http 流模式

发布于 2024-08-28 23:12:15 字数 216 浏览 17 评论 0原文

我想使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梓梦 2024-09-04 23:12:15

Should keep you busy for a bit:

http://ajaxpatterns.org/HTTP_Streaming

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文