Hey there
We are using the Channel API heavily with mobile devices.
Sometimes the onError JS Callback is called with error code 0.
We are assuming that this is because connection was lost.
If that happens, can we just call channel.open() again?
Would the Google Service ever return code 0?
At the moment our JS implementation is:
function onError(error) {
if (error.code == 0) {
// No need to get a new token.
channel = new goog.appengine.Channel(channel_id);
channel.open()
} else {
// Google doesnt like this token anymore
requestNewChannelID();
}
}
We would be really screwed if Google would ever return code 0.
What are possible error codes google would return?
We also see code -1 quite often?
Cheers,
-Andrin