Questions tagged [channel-api]

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.

217 questions
0
votes
3 answers

Does Googe App Engine's Channel API ensure that the messages arrive in the order in which they were sent?

Let a Google App Engine application be connected to a client via the Channel API. Let the server send messages through this channel in rapid succession. Does the Channel API guarantee that the messages are reported to the Javascript client in exact…
Marc
  • 4,005
  • 3
  • 27
  • 44
0
votes
1 answer

why so much XHR polling when using app engine Channel API

I am trying to use the App Engine Channel API to avoid polling for updates in my client. The problem is that I see an continuous stream of XHR packets sent in the Chrome console after starting a socket. They all say: XHR finished loading: GET…
cyrf
  • 3,246
  • 3
  • 19
  • 32
0
votes
1 answer

Upload file via Channel API

I read the article which talk about Blobstore (https://developers.google.com/appengine/docs/go/blobstore/). I would to know if I can use Channel API to send a file, and if it's possible, how.
Druxtan
  • 1,271
  • 2
  • 14
  • 18
0
votes
0 answers

SSH to Remote server from another server in Java

I am working on running a shell script from Java. I was able to ssh successfully to a server using JSCH using the steps mentioned [here]. Now my requirement is, I need to ssh to server1 , and then ssh to server2 from server1. After ssh to server2, I…
madhuram2468
  • 41
  • 1
  • 5
0
votes
1 answer

How to maintain Channel API connection when internet is offline

I am using Google AppEngine's Channel API. I am having some issue to re-start the lost connection due to the user's network connection. When you loose the internet connection, channel call onError but it will not call onClose. As far as JavaScript…
user_1357
  • 7,048
  • 11
  • 56
  • 95
0
votes
1 answer

AppEngine ChannelAPI reconnection not working

I am using AppEngine's Channel API. This API disconnects the connection every 2 hours so I will have to handle the reconnection on my side whenever onError or onClose is called on the client side. Problem is, I inserted the reconnection code in…
user_1357
  • 7,048
  • 11
  • 56
  • 95
0
votes
1 answer

Thread safety / atomicity of App Engine Channel API

What happens when I try to send a message with Google App Engine's Channel API but from two or more goroutines and/or task queues? e.g. go channel.Send(context, clientID, "Hello") go channel.Send(context, clientID, "World") I understand that in GAE…
Glen Low
  • 4,111
  • 1
  • 28
  • 34
0
votes
1 answer

Exception on trying to access the entity using key in GAE datastore

I am actually building a chatroom using GAE the problem is that i am storing the clientid and token in chatrromservlet and accessin them in the sayservlet using datastore key but when I am trying to access the datastore from sayservlet using the key…
0
votes
1 answer

how to communicate between two clients using channel API?

I've successfully implemented the channel api to create the connection between browser and app engine server. I want to ask what will be the way to send message from the second client to the first client. I'm not getting the actual algorithm.
omerjerk
  • 3,535
  • 5
  • 33
  • 56
0
votes
1 answer

gae channel token as general access token

I have an Android app which communicates via channel and REST with the GAE server. Can I use the channel token as general access token like this: client provides credentials to servlet servlet creates channel and provides token client does REST…
user2583621
  • 145
  • 10
0
votes
1 answer

Displaying images in html5 canvas from binary data

I am trying to send an image from a canvas through the google app engine channel api to another client who will then display the same image. The message is being received but it is not displaying the image. On the sending side: var image =…
0
votes
1 answer

GAE: Only one channel to a page? How is this enforced?

This may be a naive question but I was planning to create a new channel just before the existing channel timed out to make sure that my client was never without a channel. I thought I was being pretty clever until I read this caveat in the google…
Charlie Burns
  • 6,816
  • 18
  • 27
0
votes
1 answer

channel in trivial GAE app not getting 'onmessage'

I am trying to create the smallest possible GAE app to show the use of the channel api. I have two handlers in the python, the first "TestPage" sends out the html shown below. The second "SendPage" tries to send a message over the channel to the…
Charlie Burns
  • 6,816
  • 18
  • 27
0
votes
0 answers

Google App Engine Channel Presence Not Firing On Reused Channel Token

I have an app that supports a two way connection between a "master" device and multiple "remotes" using the Google App Engine Channel API. To conserve data consumption, the "master" only sends it's data to the remote devices who have been noted in a…
0
votes
1 answer

Close GAE channel from server side Python

In the client side is possible close the socket with connection.close(), but its possible close it from the server side?
alei
  • 46
  • 3