[Haskell-cafe] Happstack events and web page refreshing

Chris Smith cdsmith at gmail.com
Mon Jan 17 18:30:39 CET 2011


On Mon, 2011-01-17 at 18:25 +0100, Corentin Dupont wrote:
> Thanks a lot for your response Jeremy.
> I can see a lot of site that does update infos without the user to
> have to click "refresh" (I think Facebook does?).
> Do they do polling?

While I'm not familiar with Facebook, I'd guess that today, most such
sites are all doing polling.  Especially the high-volume ones, for which
leaving a connection open for every current user would be impractical.

Polling doesn't have to be done with page refreshes.  It can also be
done with JavaScript using, e.g., the XMLHTTPRequest object.  Then it
would be pretty transparent to you.

-- 
Chris




More information about the Haskell-Cafe mailing list