Is Http Streaming Comet possible in Safari?

前端 未结 4 464
自闭症患者
自闭症患者 2020-12-31 12:52

By HTTP Streaming Comet, I mean the \"forever iframe\" / \"forever xhr\" variations that don\'t close the connection after data has been pushed from the server, as opposed t

4条回答
  •  轮回少年
    2020-12-31 13:43

    It's definitely possible: GMail does it. If you watch the Resources section of the developer tools in the latest Webkit, you can watch it in action. They have a request called "bind" that stays open more or less indefinitely. My understanding is that when new mail arrives, it comes across that connection.

提交回复
热议问题