如何在没有任何Clintes活动的情况下更新状态? [英] how does facebook update status without any Clintes Activity ?

查看:87
本文介绍了如何在没有任何Clintes活动的情况下更新状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Http协议是一个客户端服务器协议!这意味着当我有请求时它会给我答案!

但我总是会自动看到我的状态更新。

什么是秘密?

是一种Socket编程?



我试图用jquery做类似的东西。我用jquery每1秒向服务器发送一个信号,服务器响应我。但Facebook似乎很愚蠢!



我怎样才能做出类似的东西?!

I know Http protocol is a client Server Protocol ! it means it gives me the answer when i have a request !
but i always see my status updates automatically .
what is the Secret ?
is that a kind of Socket programming ?

i tried to Use jquery to make something similar . i sent a signal to server every 1 Second with jquery and server responded me . but it seems Stupid for Facebook !

how can i make something Like That ?!

推荐答案

这里有什么愚蠢的?这就是现在的趋势。页面一旦出现,就会自动刷新新数据。太棒了。您不需要不时刷新页面。



它还会通知您朋友的活动或您参与的任何帖子。无论事情背后发生什么都无关紧要,只要用户喜欢尽快看到他们真正需要的东西。在这个编程时代,用户体验是最重要的。
What is stupid here? That is what trending now a days. Page automatically refreshes with new data as soon as they come. That's really cool. You don't need to refresh the page time to time.

And it also notifies you about your friend's activities or any posts in which you are involved with. Whatever happening behind the scene does not matter so much, as long as user enjoys seeing what they really need as soon as possible. User experience is the main thing right now in this era of programming.


这篇关于如何在没有任何Clintes活动的情况下更新状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆