The Channel API creates a persistent connection between your application and Google servers, allowing your application to send messages to JavaScript clients in real time without the use of polling.
Questions tagged [channel-api]
217 questions
3
votes
1 answer
How to properly wrap GAE Channel API in Angular.js service and push updates out to the entire app?
So I'm trying to use the GAE Channel API with Angular.js to do real-time data-bound updates (which would be really cool, right!?). I'm told the correct way to do this is to wrap the Channel API Javascript Client in an Angular.js service (and make…

SteveShaffer
- 1,577
- 1
- 10
- 14
3
votes
2 answers
How to unit test code relying on Channel API (Google App Engine, Java)
I have Java servlets that rely on the Channel API, from Google App Engine. I am trying to write unit tests for that code, but I am quite stumped with how to write a stub client to receive a response message from the servlet, instead of me always…

ecbrodie
- 11,246
- 21
- 71
- 120
3
votes
2 answers
Google Channel API sends a message to all clients
I created a working Google Channel AP and now I would like to send a message to all clients.
I have two servlets. The first creates the channel and tells the clients the userid and token. The second one is called by an http post and should send the…

Andre Hofmeister
- 3,185
- 11
- 51
- 74
3
votes
1 answer
Is it possible to connect from another domain to my App Engine with the Channel API
I want a cross domain communication from my site to the backend at App Engine with the Channel . Is this possible and if so how? Because there is no domain parameter in the Javascript API

Dominic
- 3,353
- 36
- 47
2
votes
2 answers
Guarding against missed messages in AppEngine Channel API
In the AppEngine Channel API, channels automatically close after 2 hours. We are handling this by rejoining the channel in the onError event.
Is there a chance the messages could get missed if they are sent while the channel is reconnecting?
Our…

Kyle Baley
- 580
- 1
- 5
- 16
2
votes
2 answers
What is the Amazon EC2 equivalent of the AppEngine Channel API?
If any. I. e. if there is something that is only roughly similar, I would appreciate if you could characterize what are the limitations and differences.

necromancer
- 23,916
- 22
- 68
- 115
2
votes
1 answer
working with new channel creation limits
Google app engine seems to have recently made a huge decrease in free quotas for channel creation from 8640 to 100 per day. I would appreciate some suggestions for optimizing channel creation, for a hobby project where I am unwilling to use the paid…

mkwn
- 23
- 2
2
votes
4 answers
Google channel api for c/c++ client
Is there a c/c++ client for google channel api?

Sean Nguyen
- 12,528
- 22
- 74
- 113
2
votes
2 answers
Using GAE channels without browser
I want to write GAE based application that synchronizes information between computers/phones. Right now I am only querying periodically, which causes delays or requires user to click a button to refresh manually.
With GAE channels, it should be…

wojciechka
- 598
- 4
- 13
2
votes
1 answer
App engine Channel API returns no messages
Problem description: channel messages no returned to ajax script.
Initially, messages are delivered to clietn side, but the problem appears when I set larger timeout in js:
goog.appengine.Socket.POLLING_TIMEOUT_MS = 5000; //poll every 5…

AlexA
- 4,028
- 8
- 51
- 84
2
votes
1 answer
Problem with google appengine channel API (Java)
I'm having problems with the Channel API - any help would be greatly appreciated.
I've no problems with the API on the local dev server, but when I put it up on appspot, I get an esoteric exception thrown. Full stack trace is attached, but the…

Matthew Smalley
- 41
- 5
2
votes
4 answers
Google App Engine Channels API and sending heartbeat signals from client
Working on a GAE project and one requirement we have is that we want to in a timely manner be able to determine if a user has left the application. Currently we have this working, but is unreliable so I am researching alternatives.
The way we do…

Dude0001
- 3,019
- 2
- 23
- 38
2
votes
1 answer
Google Channel API - Socket not opening on some clients
I've been developing a simple chat application using the XMPP Service and the Channel service. I've been able to get it functioning correctly at home. However, when another user tries to access the site, the onOpen callback method is not being…

John F.
- 4,780
- 5
- 28
- 40
2
votes
1 answer
GAE/J Channel API exception even though messages go through?
I open a channel during the app initialization through a series of ajax calls:
getToken = function () {
xhr = new XMLHttpRequest();
xhr.open("GET", "/game?action=getChannelToken", true);
xhr.send(null);
xhr.onreadystatechange =…

Aleadam
- 40,203
- 9
- 86
- 108
2
votes
0 answers
Why GAE ChannelAPI Socket.open() fails?
We are using Channel API on our website and it works very well on desktop and mobile site (iPhone/Android). But the same code fails silently on Socket.open command in our mobile app (built with Appcelerator Titanium/jQTouch/WebView). Unfortunately…

Parham
- 151
- 4