How to push new HTML data from the server to the browser without refreshing the page

前端 未结 4 1018
忘了有多久
忘了有多久 2021-01-03 02:54

I have seen many websites (facebook or stack overflow for instance) that will update certain features as new data is generated (new answer on a post for example).

L

4条回答
  •  情深已故
    2021-01-03 03:11

    You can use HTML5 SSE. But that's not a very good solution.

    You can use Comet server that helps in Long AJAX polling. Check out the Ajax Push Engine (APE). It's a combination of Comet Server and a Javascript framework to make AJAX-PUSH or real time streaming possible.

    cheers! :)

提交回复
热议问题