Forever Frame comet technique?

前端 未结 1 1759
余生分开走
余生分开走 2021-01-13 23:22

Can someone please explain me how the \"Forever Frame\" technique works ? A code example would be awesome! I went through all the material i could find in Google but i still

相关标签:
1条回答
  • 2021-01-13 23:40

    Dylan Schiemann gives a great explanation.

    In short, it uses "chunked encoding", a feature of HTTP/1.1 intended for an entirely different purpose, but which allows the server to maintain a connection to the client indefinitely, sending additional data to the client at will.

    As Dylan says :

    This technique is very low-latency because it avoids HTTP and TCP/IP set-up and tear-down by reusing a single long-lived connection.

    http://cometdaily.com/2007/11/05/the-forever-frame-technique/

    The rest of his article is well worth a read.

    0 讨论(0)
提交回复
热议问题