Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one do realtime updates of a web page?

Tags:

javascript

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.

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

like image 491
Billy ONeal Avatar asked Oct 05 '10 14:10

Billy ONeal


1 Answers

You can use Comet.

like image 88
SLaks Avatar answered Oct 03 '22 15:10

SLaks