网络上的实时协作使用界面

发布于 2024-08-10 22:22:33 字数 1436 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

究竟谁懂我的在乎 2024-08-17 22:22:33

Wave 具有操作变换,它具有易于组合的良好特性。您有两个用户,每个用户都在用户界面中执行“某些操作”,并且两个“某些操作”可以合并到最终文档中。这使您可以跳过解决冲突的问题。

实现应用程序状态实时更新的一个好方法是使用 Comet,本质上是一个极客代号,用于保持对服务器的活动、长期、未终止的 get/post 请求,当服务器上发生某些情况时,该服务器会完成并响应。它允许向客户端发送即时更新,而无需客户端定期轮询。

我真的不能说如何在 javascript/r'n'r 中将其抽象出来,许多底层技术细节都足够困难并且特定于应用程序,没有任何框架可以开箱即用地支持它们。

Wave has operational transform that has a nice property of being easily combinable. You have two users, each of them does "something" in the user interface and two "somethings" can be combined into final document. That allows you to skip the problems with conflict resolution.

A nice way to enable real-time updates to state of the app is by using Comet, which is essentially a geeky codename for keeping an alive, long standing, unterminated get/post request to the server, that server finishes and responds to when something happens on the server. It allows sending to the client instantaneous updates without having the client periodically poll.

I can't really say how to abstract this away in javascript/r'n'r, many of the underlying technical details are hard enough and application specific that no framework supports them out of the box.

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