NYCPHP Meetup

NYPHP.org

[nycphp-talk] Chat thru Ajax

Chris Shiflett shiflett at php.net
Tue Feb 27 00:35:56 EST 2007


LK wrote:
> Two people on separate PCs are sending instant messages to each
> other through Ajax on a common server. The sender posts a message
> and it gets stored in the database. How does the receiver get
> that message on the other machine?

Use persistent connections and chunked responses. It's a technique now
being described as Comet, partly to play on the Ajax theme.

I give the elevator description (yes, I just made that up) at the end of
this blog post:

http://shiflett.org/archive/232

Chris

-- 
Chris Shiflett
http://shiflett.org/



More information about the talk mailing list