Mani
Mani

Reputation:

Real time updates display like friend feed or twitter top tweets

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

Upvotes: 4

Views: 1526

Answers (4)

cbix
cbix

Reputation: 498

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

Upvotes: 1

tomg
tomg

Reputation: 355

Google has a nice JavaScript/Browser wrapper for this:

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

good luck!

Upvotes: 1

Julien Genestoux
Julien Genestoux

Reputation: 32962

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.

Upvotes: 1

Nithesh Chandra
Nithesh Chandra

Reputation: 1860

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.

Upvotes: 1

Related Questions