开发者

Real time updates display like friend feed or twitter top tweets

开发者 https://www.devze.com 2023-01-17 10:37 出处:网络
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

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 update开发者_如何学运维s in atom xml format.

Thanks, Mani


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.


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.


Google has a nice JavaScript/Browser wrapper for this:

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

good luck!


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

0

精彩评论

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