Posts Photos Archives About
💬 Reply to 'how to detect incoming chat message?' on stackoverflow:

You have to use polling, but you can use a technique called Comet which involves long-polling, i.e. sending out an ajax request that will be held by the server until a chat request comes in.

June 30, 2010, 10:29 a.m. / / notes / #php #mysql #ajax #chat #ajax-polling #replies / Syndicated: stackexchange / 💬 4

Last modified at: Jan. 17, 2021, 4:58 a.m. Source file


Hristo said...

This is like the 5th time I've heard about Comet... probably time for me to check it out. Thanks. Can you give me some more specifics on the logic behind Comet?

Mike Sherov said...

@hristo, Comet isn't a specific technology. It's the name given to any technique to simulate pushing data over the web. It's as much a technology as Ajax is.

Hristo said...

Thanks for the explanation. I'll check it out

Jamie Wong said...

+1 Hadn't heard the term before - sounds useful. This may be of use: