wicket - IE10 - Atmosphere Unsubscribed when AJAX Call Made -
we integrating atmosphere our current application. works great in ie 11 , latest version of chrome. in ie 10 however, unabled receive push notifications after client makes ajax call server.
we turned on atmosphere debugging, , here log in ie 10.
invoking executewebsocket
using url: ws://t1c.lh.com:8080/wicket/page?12-iresourcelistener.9-&x-atmosphere-tracking-id=0&x-atmosphere-framework=2.0.8-jquery&x.....
websocket opened
invoking 1 global callbacks: opening
....do existing ajax request.....
invoking 1 global callbacks: unsubscribe
websocket closed normally
after unsubscribe call, client no longer receives server push events. unsubscribe call not happen in ie 11. ie 11 receives push notification without issue.
any ideas on how fix?
here our atmosphere setup. using tomcat 8.0.23.
<servlet> <description>atmospherefilter</description> <servlet-name>atmospherefilter</servlet-name> <servlet-class>org.atmosphere.cpr.atmosphereservlet</servlet-class> <init-param> <param-name>applicationclassname</param-name> <param-value>appclasshere</param-value> </init-param> <init-param> <param-name>configuration</param-name> <param-value>development</param-value> </init-param> <init-param> <param-name>org.atmosphere.usewebsocket</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>org.atmosphere.usenative</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>org.atmosphere.cpr.sessionsupport</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>org.atmosphere.websocket.maxidletime</param-name> <param-value>60000</param-value> </init-param> <init-param> <param-name>org.atmosphere.usewebsocketandservlet3</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>org.atmosphere.cpr.asyncsupport</param-name> <param-value>org.atmosphere.container.jsr356asyncsupport</param-value> </init-param> <init-param> <param-name>org.atmosphere.cpr.broadcastfactory</param-name> <param-value>org.atmosphere.cpr.defaultbroadcasterfactory</param-value> </init-param> <init-param> <param-name>org.atmosphere.cpr.broadcastercacheclass</param-name> <param-value>org.atmosphere.cache.uuidbroadcastercache</param-value> </init-param> <init-param> <param-name>filtermappingurlpattern</param-name> <param-value>/*</param-value> </init-param> <init-param> <param-name>org.atmosphere.websocket.websocketprotocol</param-name> <param-value>org.atmosphere.websocket.protocol.echoprotocol</param-value> </init-param> <init-param> <param-name>org.atmosphere.cpr.broadcastfilterclasses</param-name> <param-value>org.apache.wicket.atmosphere.trackmessagesizefilter</param-value> </init-param> <load-on-startup>0</load-on-startup> <async-supported>true</async-supported> </servlet> <servlet-mapping> <servlet-name>atmospherefilter</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
thanks, matt
i've figured out. ie 10 unloads page if link click href="javascript:void(0);". of our links had (and onclick attributes ajax calls) causing onbeforeunload run contained atmosphere unsubscribe code.
i've verified removing href solves issue. new version of ie , chrome not unload page when href="javascript:void(0);" present.
reference link: why ie10 fires beforeunload event when clicking on anchor element javascript href , how prevent it
thanks following up!
Comments
Post a Comment