开发者

Twitter New tweets feature?

开发者 https://www.devze.com 2022-12-16 23:14 出处:网络
How does twitter implement the asynchronous notifications for new tweets ? If it is a form of ser开发者_运维问答ver push technology, does any one know or suggest how this feature could have been impl

How does twitter implement the asynchronous notifications for new tweets ?

If it is a form of ser开发者_运维问答ver push technology, does any one know or suggest how this feature could have been implemented ?

Thanks


Twitter does not have push technology. Any asynchronous notifications are done by a third-party application that that checks for new tweets asynchronously. If you are writing your own app, then you are going to be the one to handle this. Twitter does not push tweets out. You will have to constantly go get them.


They don't push. They use the window.setTimeout JavaScript function to periodically poll the Server through AJAX, and if there are new results then they display that notification bar.

0

精彩评论

暂无评论...
验证码 换一张
取 消