Is there a difference between long-polling and using Comet

Posted by Saif Bechan on Stack Overflow See other posts from Stack Overflow or by Saif Bechan
Published on 2010-04-03T09:46:33Z Indexed on 2010/04/03 9:53 UTC
Read the original article Hit count: 705

Filed under:
|
|

I am implementing a system where I need real-time updates. I have been looking at certain scenarios and among all was Comet. Implementing this I do not see any way this is different from traditional long-polling.

In both cases you have to send a request, and then the server send a response back. In the browser you interpret the response and then you start a new request.

So why should I use comet if in both cases I need to open and close connections.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about comet