GoogleChrome/chrome-app-samples — pull request #128 by mrdewitt (2013-08-22 20:03:02+00:00)
Title: push-guestbook: Added retry logic to the client.

Formerly, if there was an error in the client's connection
to the server, it would just quietly bomb out and fail to continue
initializing its state. Now it will retry every 5 seconds. Note
that if getChannelId fails it will still just not function correctly.