Google API feed API for COMET for clients without Javascript

How to use the Google Engine Channel API for COMET for clients without JavaScript.

I will write the client in python or any other language and you can do HTTP or Socks from the client.

How can I continue, I want to know what is happening in the support of the JavaScript client?
Is JS using Long Polling or what to say with the GAE server.

+6
python google-app-engine channel-api
source share
5 answers

Asynchronous message passing is done by embedding a hidden iframe in the page, and then using the goog.net.CrossPageChannel classes from the Google Closure javascript library to send messages from the iframe to the main page.

The Closure CrosspageChannel code is described here: http://closure-library.googlecode.com/svn/!svn/bc/4/trunk/closure/goog/docs/class_goog_net_xpc_CrossPageChannel.html

You can easily reverse engineer the messages that will be sent from the iframe to the main page. They probably will not change (although now there is no absolute guarantee).

I hope to open the original client library for the channel API this quarter, but above you should start.

+8
source share

I processed the javascript javascript API with reverse processing and created a python library . Feel free to use it. I have not tested it in any real application yet, but from what I see it seems to work quite well.

+4
source share

The Google App Engine has not yet published any documentation on the channel API protocol, so there is no library development outside the Javascript language (here is the cover for Gwt ).

If you're interested, you can run these queries: 4189 - Enable Java clients (not just javascript) to use the feed API
4226 - Channel API for native client applications?
4206 - Create Your Own C # Client Library for the Channel API

+3
source share

If you need bi-directional updates from a non-JS client, you can use XMPP .

+3
source share

Cool ... I found an X-ray representation of the "channel api" in a conversation with the application engine and on Google I / O http://www.youtube.com/watch?v=oMXe-xK0BWA

It uses a hidden iframe http://en.wikipedia.org/wiki/Comet_(programming)#Hidden_iframe

Now I will try to imitate the client in python or something like that.

0
source share

All Articles