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
java gwt atmosphere


source to share


No one has answered this question yet

Check out similar questions:

1158
"Override superclass method" Errors after importing project into Eclipse
7
Atmosphere Jersey - Server Messages
3
Atmosphere answers, broadcasts don't call javascript onMessage handler
2
What's the correct way to add an EventListener to the AtmosphereResource?
2
How do I force Atmosphere.js to use the preferred transport when reconnecting to the Server?
1
Send error in browser console when connecting Safari 5.1.7 for the first time
1
Long-term polling of the atmosphere does not recover from loss of communication
0
atmosphere js client, android, cordova, angular ui router issue when changing views
0
Atmosphere Framework: broadcast message broadcast
0
Atmosphere - Simple Scenario - Backup Transport Not Working



All Articles
Loading...
X
Show
Funny
Dev
Pics