Twitter 新推文功能?
twitter 如何实现新推文的异步通知?
如果它是服务器推送技术的一种形式,是否有人知道或建议如何实现此功能?
谢谢
How does twitter implement the asynchronous notifications for new tweets ?
If it is a form of server push technology, does any one know or suggest how this feature could have been implemented ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Twitter 没有推送技术。任何异步通知均由异步检查新推文的第三方应用程序完成。如果您正在编写自己的应用程序,那么您将成为处理此问题的人。 Twitter 不会推送推文。你必须不断地去获取它们。
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.
他们不推动。他们使用 window.setTimeout JavaScript 函数通过 AJAX 定期轮询服务器,如果有新结果,则显示通知栏。
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.