> 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

-- 
"He uses statistics as a drunken man uses lamp-posts… for support
rather than illumination." Andrew Lang

Marc C. Brooks
http://musingmarc.blogspot.com

Reply via email to