Atmosphere: reconnect after power on (lost connection)

I have successfully completed multiple push notifications using Atmosphere and GWT, however, when my network connection disconnects / reconnects, Atmosphere calls the onClose function. Unfortunately I am unable to establish a correct reconnection. Transport is a long poll.

Calling something like Atmosphere.create (). subscribe () works, but results in multiple connections (or AtmosphereResources) and slows down the entire application. What is the recommended way to re-subscribe to a broadcaster?

+3


source to share





All Articles