Monday 15 April 2013

javascript - Windowless container for Google App Engine channel API client -


I would like to write a command line tool that receives notification from Google App Engine's channel API. It is quite easy to open Java scan VM such as V8 and JS. However, one problem with this approach is that these VMs do not provide standard JS objects such as window and document , which reflects channel API references. So running this code gives you the window / document / .. not found errors.

There are two ways to dismiss this constraint:

  1. To write a lightweight header in JavaScript, to simulate the behavior of the necessary object.
  2. To edit Google's JavaScript (/ _ah / channel / jsapi) and eliminate the references of such objects. Do anybody know what are the current implementation of these methods, or do you know better ideas? Also, is there a clean, uncompressed version of the channel API client-side JavaScript code available anywhere?

    The script used by you / _ah / channel / jsapi can not be edited - its use Only occurs when the channel is running against dev application servers when the output is running, then that script is redirected to

    , so you must leave the necessary items with simulation, or Only using the hidden browser window I choose the option for later, why I think that's going to be all hard too fast to copy the DOM calls.

No comments:

Post a Comment