Reply to
:
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.
http://en.wikipedia.org/wiki/Comet_(programming))
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?
@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.
Thanks for the explanation. I’ll check it out
+1 Hadn’t heard the term before - sounds useful. This may be of use: http://www.dashdashverbose.com/2010/02/nodejs-websockets-stoopid-easy-comet.html
If you enjoyed my content for some reason, I'd love to hear from you! Here are some options:
- You can buy me a coffee!
- You can write a reply on your own site and submit the URL as a webmention via the form below.
- Or you can just contact me!