作者:张梦蒙4428 | 来源:互联网 | 2023-09-03 14:42
Nowadaysrealtimeupdatesarecommoninmostpopularsiteswhichhaveheavyusages.现在,在大多数流行网站中
Now a days real time updates are common in most popular sites which have heavy usages.
现在,在大多数流行网站中,实时更新很常见。
- StackExchange
- Facebook
- Twitter
I'm wondering how do these "real time updates" work? I'm just looking for a general bird's view perspective. I suspect that the JS can't be calling the server every X seconds for an update and then appending that to the
. Is a notification sent from the server went to pull more content?
我想知道这些“实时更新”是如何工作的?我只是在寻找一般鸟类的观点。我怀疑JS不能每隔X秒调用服务器进行更新,然后将其附加到
Would be great if there is a simple how to article that explains this with a demo?
如果有一个简单的文章如何通过演示来解释这个,那会很棒吗?
3 个解决方案