]> source.dussan.org Git - vaadin-framework.git/commit
Handle push disconnections and reconnections more reliably (#11831, #11922)
authorJohannes Dahlström <johannesd@vaadin.com>
Wed, 12 Jun 2013 11:16:57 +0000 (14:16 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 12 Jun 2013 14:51:27 +0000 (14:51 +0000)
commit15b217d26278471ee713f46340981c862e3839d2
treeaab44321fef486b7868080ef4372475065defb68
parent5f66766f02b86aeda0089b8bb15da5b2c6e40715
Handle push disconnections and reconnections more reliably (#11831, #11922)

Client-side:

* Call onOpen() also after a successful reconnection
* Reliably call onClose() and try to reconnect after disconnection
* Don't try to reconnect if !isApplicationRunning() after push
* Queue messages while trying to reconnect (state CONNECT_PENDING)

Server-side:

* Implement AtmosphereResourceEventListener.onDisconnect()
* Push marked as pending until client reconnects (if ever)

Change-Id: I1783eb72eb7005b07cae786d8ec8371da3903108
WebContent/VAADIN/jquery.atmosphere.js
client/src/com/vaadin/client/communication/AtmospherePushConnection.java
server/src/com/vaadin/server/communication/PushHandler.java