如何进行网页的实时更新? [英] How does one do realtime updates of a web page?

查看:106
本文介绍了如何进行网页的实时更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google的GMail服务之所以能够实现这一点,是因为它集成了Google Talk,而Etherpad(现在的typewith.me)因使用了Google Wave等系统而闻名。当其他用户对页面进行更改时,所有这些系统都会立即有效地更新用户正在处理的页面。很容易告诉服务器发生了变化,但让客户更新自己更加困难。

Google's GMail service does it because it integrates Google Talk -- and Etherpad (now typewith.me) made famous the system which is used by, for example, Google Wave. All such systems update the page the user is working on effectively instantly when other users make changes to the page. It's easy to tell the server that a change has happened when it has happened, but it's more difficult to get clients to update themselves.

这种实时编辑是如何工作的?它只是让客户端每秒多次ping服务器进行更新吗?

How does this kind of realtime editing work? Does it simply have the client ping the server tens of times per second for updates?

推荐答案

你可以使用 Comet

这篇关于如何进行网页的实时更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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