Channel API Sockets - Uni-Directional or Bi-Directional?

55 views
Skip to first unread message

eeejay

unread,
Aug 18, 2011, 1:46:52 PM8/18/11
to google-a...@googlegroups.com
Question 1:  Is this the correct forum to ask question about Channel API (which I am intending to use in conjunction with Google App Engine).

Question 2: In the documentation for the Channel API it says:  "The JavaScript client opens a socket using the token provided by the server. It uses the socket to listen for updates on the channel."  However communication from the client to the server seems to be in the form of a POST.

Are Channel API sockets truly uni-directional server-to-client?  Or is there a way for the client to communicate back via web socket?


Robert Kluin

unread,
Aug 19, 2011, 1:50:17 AM8/19/11
to google-a...@googlegroups.com
On Thu, Aug 18, 2011 at 13:46, eeejay <er...@artefactgroup.com> wrote:
> Question 1:  Is this the correct forum to ask question about Channel API
> (which I am intending to use in conjunction with Google App Engine).

Yes.

> Question 2: In the documentation for the Channel API it says:  "The
> JavaScript client opens a socket using the token provided by the server. It
> uses the socket to listen for updates on the channel."  However
> communication from the client to the server seems to be in the form of a
> POST.
> Are Channel API sockets truly uni-directional server-to-client?  Or is there
> a way for the client to communicate back via web socket?

No; server-to-client is implemented using long-polling. The
client-to-server uses POST requests back to the server.


Robert

Reply all
Reply to author
Forward
0 new messages