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
2
votes
1 answer

Channels and TaskQueues in Google App Engine (client debugging)

I'm trying to build and debug my first GAE application and have already benefited from the awesome support of Stackoverflowers to get where I am in having tasks being processed on the default queue. Thanks! However, I wanted to use Queues to…
ConfusedNoob
  • 9,826
  • 14
  • 64
  • 85
2
votes
2 answers

How to make a countdown timer on appengine?

I am developing an application (on GAE) that needs a countdown timer and notifies the client side when the timer reaches zero. To notify the client side i'm using GAE Channel API . any ideas? (Considering GAE limitations. not using Thread or Timer…
Adriano
  • 73
  • 5
2
votes
1 answer

import appengine channel js api without script tag

I'm actually trying to use google channel api in javascript, it works perfectly with reactJS, but i would like use it on react-native. So how can i import I've tried to curl sources…
Fantasim
  • 876
  • 1
  • 12
  • 32
2
votes
2 answers

Channel API overkill?

Hi I am currently using channel API for my project. My client is a signage player which receives data from app engine server only when user changes a media content. Appengine sends data to client only ones or twice a day. Do you think channel api…
Karthikkumar
  • 269
  • 3
  • 15
2
votes
0 answers

unable to create new channel in javascript of channel API

Here is my python file import os from google.appengine.api import channel from google.appengine.ext import webapp from google.appengine.ext.webapp import template from google.appengine.ext.webapp.util import run_wsgi_app import logging token =…
Sunil Garg
  • 14,608
  • 25
  • 132
  • 189
2
votes
1 answer

Progress bar on data transfer

I am sending files (up to 100Mo on my android handled) using the Channel Api. I decided to create a handler to update the progress of the transfer to that the user is aware of the progress. I use the Message Api to send the file size to my handled…
krakig
  • 1,515
  • 1
  • 19
  • 33
2
votes
1 answer

GAE Channel Api vs Socket

I have a Google app that runs using GO on the server side and Javascript on the client side. The client generate every certain timestep a javascript object (that could be "stringified") that needs to be sent back to the server and saved as json…
Dede
  • 127
  • 1
  • 9
2
votes
1 answer

WebRTC Server side Signaling

I am new to WebRTC. I am looking to develop an Application on GAE Java infrastructure. Its a large application but I am looking to solve Communication between Peer to Peer ie Browser to Browser Goal : When a user draw a line on HTML 5 canvas, it…
shank2111
  • 105
  • 1
  • 11
2
votes
1 answer

Channel API -- Invalid Token on production, works on dev server

I'm having difficulty with the Channel API, but only on production. On the dev server this works, but on production I'm getting an Invalid+token error in my javascript, and somehow blank errors in my Python. Here's my server side code.…
2
votes
0 answers

How to use GAE channel API when there are network disconnections ?

I want to use the Google App-Engine Channel API and send messages from server to client. I'am worried about possible network disconnections. What's happen by example if the client is not reachable from the server during a certain time ? Is there a…
2
votes
1 answer

Sending a data uri via google app engine channel api

I'm trying to send a data uri of an image that has been taken from a canvas element to another client via the channel api. This is my javascript: var pictData = imageCanvas.toDataURL("image/png"); sendPictData(pictData); function…
Alec Hewitt
  • 805
  • 1
  • 12
  • 21
2
votes
2 answers

url for channel api appears to be empty ( GAE channel) works on dev, not on google

I have a simple complete app that uses the GAE channel api. It works on my local machine but when I upload it to appspot the url where the channel api is supposed to be appears to be empty and the app fails with the message "goog is not found". The…
Charlie Burns
  • 6,994
  • 20
  • 29
2
votes
1 answer

When is it better to use polling instead of the channel api?

I have an application where users can collaborate on photo albums. I currently use polling on the client to check for new content every 30 seconds. There can be any number of people uploading and viewing an album at any given time. On the server…
Rob Curtis
  • 2,245
  • 24
  • 33
2
votes
1 answer

Can you reopen GAE Channels in the browser without leaking memory?

I can't seem to be able to reopen channels in my browser without a memory leak on production. The dev_appserver version of the channel doesn't leak. channel.js appears to create an iframe which then loads further javascript for each channel. When…
dragonx
  • 14,963
  • 27
  • 44
2
votes
2 answers

GAE Channel API - Check if the socket is alive from Javascript

I have an application that uses channel API. The connections should be always alive (24x7) and I have implemented it in such a way that every time a channel gets disconnected, a new channel is created automatically. This works fine most of the times…
budsiya
  • 540
  • 3
  • 14
  • 22