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

前端 未结 4 1633
旧时难觅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:49

    Try looking into the library "comet." It's implements what's known as "reverse AJAX." It'll allow you to send events from the server to the client easily.

    The polling suggestion made just before mine, is also perfectly valid.

提交回复
热议问题