Is there a difference between long-polling and using Comet

后端 未结 4 411
[愿得一人]
[愿得一人] 2020-12-24 08:13

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 d

4条回答
  •  隐瞒了意图╮
    2020-12-24 08:38

    Some Comet techniques don't require that you constantly open new requests (the chunked hidden iframe, for instance), the idea being to hold the request open and have the server periodically sending data. But this doesn't work well across all major browsers without (as one Wikipedia contributor delicately put it) negative side-effects, hence the long-polling technique. More in the linked article.

提交回复
热议问题