How to do live updating similar to Google Docs?

前端 未结 11 810
孤街浪徒
孤街浪徒 2021-01-30 09:07

I want to do something very similar to Google Doc\'s live updating - where all users can \"immediately\" see the actions of the other users in the doc.

To achieve this,

11条回答
  •  一生所求
    2021-01-30 09:49

    I vote for Long-poll strategy : each client opens a request to the server, but the server never breaks up connections, and just send pieces of java-script from time to time.

    Constant AJAX requests would kill your server.

提交回复
热议问题