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
2
votes
1 answer
How to deal with channel api rate limit?
I need to implement real time notification system like stackoverflow(when someone adds answer/comment to a question) to my website. I came to know that channel API is the easiest way to implement that on appengine. But i was taken back by the quota…

ravi
- 838
- 1
- 12
- 25
2
votes
1 answer
GAE channel api parsing onmessage
I am building an app with gae, and using the channel api.
String message ="newMessage Hello ";
channelService.sendMessage(new ChannelMessage(user,message));
This string is sent from the java servlet,…

hackio
- 776
- 2
- 8
- 18
2
votes
1 answer
Google App Engine Channel API Javascript Client: Set Poll Timer Manually
I am writing a web client that supports messages sent from a Google App Engine Java server, by using Google's official GAE Channel API Javascript client. I would like to know if it is possible for me to manually set the timer for the frequency of…

ecbrodie
- 11,246
- 21
- 71
- 120
2
votes
1 answer
how google channel api pricing works?
I read on the official doc that to open a new channel it will cost $0.01. and it will last 2 hours.
so if I have 1000 concurrent users who use my site daily for 2 hours.
total cost will be 1000*$0.01 = 10$ daily.
bandwidth cost + cpu cost. right…

iamgopal
- 8,806
- 6
- 38
- 52
2
votes
2 answers
Channel Google App Engine channel.open() does not work
I've a problem when opening the channel.
i've this on the server side:
def get(self):
user = users.get_current_user()
if not user:
self.redirect(users.create_login_url(self.request.uri))
return
…

EsseTi
- 4,079
- 5
- 36
- 63
2
votes
1 answer
Compression when using the Channel API in Google App Engine
In this FAQ question it says that compression is used automatically when the browser supports it and that I don't need to modify my application in any way.
My question is, does that apply to Channel API messages too?
I have an application that needs…

Vlad A. Ionescu
- 2,638
- 1
- 16
- 19
2
votes
2 answers
appengine ChannelFailureException is not thrown in dev
AppEngine is supposed to throw ChannelFailureException whenever there is an error in sending message to a channel, e.g. when a channel is not connected.
It seems like the dev server does not throw this exception. It does show a warning in…

xtrahelp.com
- 926
- 8
- 14
2
votes
2 answers
How do I turn off the console logging in App Engine Channel API?
I've implemented the Channel API w/ persistence. When I make a channel and connect the socket (this is on the real app, not the local dev_appserver), Firebug goes nuts with log messages. I want to turn these off so I can see my OWN logs but cant…

Nicholas Franceschina
- 6,009
- 6
- 36
- 51
2
votes
2 answers
Is GAE Channel API secure? And what is the underlying implementation?
I'm using GAE + Python to create an application that needs to send real-time updates of sensitive data to clients and I wanted to know if the App Engine Channel API is secure or not. Will using HTTPS be enough or do channels require their own…

MattL922
- 621
- 2
- 7
- 12
1
vote
1 answer
Google App Engine Channel Token and Client ID relationship
In Google App Engine documentation for Channel API, it is stated that "Only one client at a time can connect to a channel using a given Client ID".
In contradiction, when I try to create a channel with the same Client ID, a new channel is consumed.…

Meti
- 365
- 3
- 8
1
vote
1 answer
Do the same GAE channel tokens work between tabs?
Going by the GAE docs for the Channel API,
Only one client at a time can connect to a channel using a given
Client ID, so an application cannot use a Client ID for fan-out. In
other words, it's not possible to create a central Client ID for
…

Sudhir Jonathan
- 16,998
- 13
- 66
- 90
1
vote
2 answers
Appengine Java & GWT - Cannot recreate and open a channel
I'm using App engine Channel API with gwt-gae-channel library (v. 0.4) in GWT and i'm trying to test the recreation of a channel, after expiration (i.e. onError is called with code 401).
The test is:
- use GWT RPC method to create a channel…

Andrei F
- 4,205
- 9
- 35
- 66
1
vote
1 answer
How to use datastore key as Channel API client id?
I do the following:
user = User()
...
user.put()
client_id = user.key() # value like agpkZXZ-Y3Njb3JlcgoLEgRVc2VyGAkM
token = channel.create_channel(client_id)
and I am getting InvalidChannelClientIdError.

LA_
- 19,823
- 58
- 172
- 308
1
vote
1 answer
Is it OK to pass both token and client_id to the client when Channel API is used?
I need to create an application, where GAE server will always talk with just one client (i.e. one message should be always sent just to one client).
I do the following -
Python:
def get(self):
# generate token, when page is loaded
client_id…

LA_
- 19,823
- 58
- 172
- 308
1
vote
1 answer
Channel API /disconnect inbound service not called when tabs are closed in Chrome and FF
I create socket connection each time user logs into my application. This means if they open new tabs within same browser window multiple socket connections are established for each browser tabs.
Problem occurs when I close these tabs;…

user_1357
- 7,766
- 13
- 63
- 106