在页面上实现实时协作?

发布于 2024-09-28 18:48:04 字数 225 浏览 10 评论 0原文

我想创建一个网页,允许多个用户在一个页面上一起工作,想象一个基于网络的编辑器,允许用户更改文档作为此类功能的示例。

更有经验的程序员将如何实现这一点,因为我似乎无法制定任何方法来开始执行这项任务。是否有任何编程库可以使此功能的实现变得更容易,或者它是否太复杂以至于无法考虑?

我主要使用 GWT 和 SmartGWT 创建这个 Web 应用程序(如果有帮助的话)。

感谢您提供的任何意见。

I would like to create a web page which would allow multiple users to work together on a page, Imagine a web based editor that allowed to users to change the documents as an example of this type of feature.

How would more experienced programmers go about implementing this as i really cant seem to formulate any way to even begin going about this task. Would there be any programming librarys that make implementing this feature easier or is it just too complex to even think about?

I am creating this webapp primarily using GWT and SmartGWT if that helps.

Thanks for any input you may have.

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

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

发布评论

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

评论(2

清风无影 2024-10-05 18:48:04

gwt 确实有一个类似 cometd 的库 - http://code.google.com/p/gwteventservice /

维基百科:
在 Web 开发中,Comet 是一个新词,用于描述一种 Web 应用程序模型,其中长期持有的 HTTP 请求允许 Web 服务器将数据推送到浏览器,而无需浏览器明确请求。 Comet 是实现这种交互的多种技术的总称。所有这些方法都依赖于浏览器默认包含的功能(例如 JavaScript),而不是非默认插件。

在实践中:
通常,客户端可以通过请求->响应来接收资源。如果没有请求,不可能将数据直接发送到客户端。使用 Comet,您可以在客户端和服务器之间保持实时连接并实时交换数据。

查看:docs.google.com。他们正在使用彗星。

There is indeed a cometd-like library for gwt - http://code.google.com/p/gwteventservice/

Wiki:
In web development, Comet is a neologism to describe a web application model in which a long-held HTTP request allows a web server to push data to a browser, without the browser explicitly requesting it. Comet is an umbrella term for multiple techniques for achieving this interaction. All these methods rely on features included by default in browsers, such as JavaScript, rather than on non-default plugins.

In practice:
In normal way client can receive resources by request->responce. It is no possible to send data directly to client without request. With comet you can hold realtime connection between client and server and exchange data in realtime.

Check out: docs.google.com. They are using comet.

为人所爱 2024-10-05 18:48:04

Etherpad.com 是一项用于执行此操作的服务。此后它被谷歌收购,并将代码作为开源发布。您可以在 etherpad.com 页面上看到多个链接,获取源下载和相关信息。

Etherpad.com is a service that used to do this. It has been since bought by Google, and the code released as open-source. You can see several links on the etherpad.com page for the source download and related information.

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