Status: Closed (View Workflow)
Affects Version/s: None
Fix Version/s: None
I am using Richfaces 4.2.2 for my project and from https://developer.jboss.org/wiki/StartingWithRichFacesPushOnVariousServletContainers, figured out that atmosphere 0.8.4 needs to be used for compatibility. I am able to get push working but it is using long-polling instead of websockets. Webserver is Jboss 8.2 (undertow).
Following configurations were done to achieve this:
On server side, push notifications are send to client using
TopicKey topicKey = new TopicKey(key);
TopicsContext topicsContext = TopicsContext.lookup();
On client side, notifications are received as. I have added script block to use transport for push as websocket, but it seems to be failing.
RichFaces.Push.transport = "websocket";
RichFaces.Push.fallbackTransport = "long-polling";
<a4j:ajax event="dataavailable" render="someelements"/>
Can anyone guide me along with the missing configurations? OR it is the limitation with the current version of richfaces/atmosphere that long-polling is the only supported transport mechanism?
Firefox can't establish a connection to the server at ws://localhost/test/_richfaces_push?_richfacesPushAsync=1&pushSessionId=d7adb280-eb7c-4550-81b1-24e691e552e2