Marc,
The "Comet Pattern" is exactly what I'm trying to do. My specific
question is how to create the event mechanism on the web server. The
only idea I've come up with is the polling of a server object. I was
hoping someone might be able to point me in a more elegant direction.
Marc Brooks wrote:
I've created an ajax chat client and I am trying to avoid doing a http call
every second to check on messages. I would like to call the web service and
the following occur.
What you want is to apply the Comet pattern where you leave a "hung
open" request that gets pushed into by the server when new data is
available. Then the client immediately requests another connection
which is then hung-open until the next poll/trigger is available.
See:
http://en.wikipedia.org/wiki/Comet_%28programming%29
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com