How to “stream” json from server to client using javascript

前端 未结 4 1711
旧时难觅i
旧时难觅i 2021-01-05 00:20

I\'m familiar enough with Ajax and JSON that I can send a request and get a parse a JSON request. Ideally I\'d like to receive multiple response to periodically update a pro

4条回答
  •  离开以前
    2021-01-05 00:39

    Found a technique called page streaming.

    Basically you write entries into the persistent connection and flush them into the network interface. As browser receives that, it will parse and execute the script.

提交回复
热议问题