实时更新显示,如好友动态或 Twitter 热门推文

发布于 2024-09-20 00:40:06 字数 257 浏览 3 评论 0 原文

我正在使用 PubSubHubbub 接收提要的最新更新。一旦回调 url 收到更新,它应该显示在网页中,如好友动态或 Twitter 热门推文(新内容到达后内容将立即下移)。

有没有图书馆可以做到这一点? jQuery?

回调 url 接收 Atom xml 格式的更新。

谢谢, 玛尼

I am using PubSubHubbub to receive the recent updates on the feed. As soon as callback url receives the update, it should displayed in the web page like friend feed or twitter top tweets (content will move down as soon as new content arrives).

Is there any library to do this? Jquery?

Callback url receives the updates in atom xml format.

Thanks,
Mani

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

っ左 2024-09-27 00:40:06

我不确定是否有适合您的现成插件,但您可以按照 教程来创建您自己的教程。

I'm not sure if there's a ready-made plugin for you but you can follow this tutorial to create one of your own.

云胡 2024-09-27 00:40:06

PubSubHubbub 是一个服务器到服务器协议,这意味着您会错过接收提要更新的服务器与客户端(在您的情况下为浏览器)之间的连接。显然有很多方法可以做到这一点。其中之一是使用提供程序,例如 KwwikaBeaconPushPusherApp

另一种是自己实现。一个小型服务器,能够处理传入的 PubSubHubbub 通知,还可以提供一些 HTTP 内容,以及更新远程页面上的内容。这可以通过一些 Ajax、长轮询或 websockets 来完成。我建议您阅读这篇文章,它会给您一个总体概述。

PubSubHubbub is a server to server protocol, which means you miss the connection between the server which receives the feed updates and the client (the browser in your case). There are obviously many ways to do it. One of them is to use a provider, like Kwwika, BeaconPush or PusherApp.

Another one is to implement this yourself. A small server which is able to deal with incoming PubSubHubbub Notifications, but also serve the some HTTP content, as well as update the content on the remote page. This can be done wit some Ajax, with long polling, or websockets. I would recommand reading this article, which will give you a general overview.

稚然 2024-09-27 00:40:06

Google 为此提供了一个很好的 JavaScript/浏览器包装器:

http://code .google.com/apis/feed/push/docs/index.html

祝你好运!

Google has a nice JavaScript/Browser wrapper for this:

http://code.google.com/apis/feed/push/docs/index.html

good luck!

玩套路吗 2024-09-27 00:40:06

如果您有 Node.JS 服务器,则可以使用 socket-sub

You can use socket-sub if you have a Node.JS server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文