-
1. Re: a4j:push websocket in 4.3.0M1
lfryc Aug 14, 2012 5:24 PM (in response to olivers)Hey Oliver,
there has been attempts to make it work [1],
but Atmosphere documentation still refers to JBoss AS7 as unable to support WebSockets [2].
If it is something you are interested in, I can offer you help to hack on that on #richfaces @ irc.freenode.net ,
test if it works (since JBoss AS is using Tomcat internally, there should be not much work left to do in order to support it).
I have also found one succesful report on using Atmosphere on AS7, worth to give it a try! [3]
[1] https://groups.google.com/forum/?fromgroups#!topic/atmosphere-framework/vq0-4T7au_U%5B1-25%5D
[2] https://github.com/Atmosphere/atmosphere/wiki/Supported-WebServers-and-Browsers
-
2. Re: a4j:push websocket in 4.3.0M1
olivers Aug 15, 2012 2:35 AM (in response to lfryc)Hi Lukáš,
thank you for your reponse.
It looks as there is really something on the way.
What I would like to know if it also works from the Richfaces side.
As far as I understand it, Atmosphere is the core building block for Richfaces to make Server push possible.
I also understand that currently the AS->Atmosphere->a4j:push implementation only supports long polling.
The question is now if websockets work on that stack qutomatically if the AS->Atmosphere websocket support is available?
Or do you have to make changes to Richfaces to make it work as well?
I saw in the souce code of push.js that websocket is commented out there.
Will you just have to enable that?
We are very much interested in that topic since we are planning to build an application that is extreamly depending on a proper push mechanism.
-
3. Re: a4j:push websocket in 4.3.0M1
lfryc Aug 15, 2012 1:12 PM (in response to olivers)Hey Oliver, the websocket is currently disabled internally
though, you can enable it simply by adding following script before a4j:push into your page:
<script> richfaces.Push.transport = "websocket"; richfaces.Push.fallbackTransport = "long-polling; </script>
It is reflected here in source code:
I have re-read the blog I have linked above and in reality, it doesn't tell websockets works, it just says Atmosphere works with AS7.
We need to give websockets a try!
Would you like to volunteer for this?
We would really appreciate help with this!
-
4. Re: a4j:push websocket in 4.3.0M1
olivers Aug 17, 2012 7:36 AM (in response to lfryc)I did a little research and tried th following:
Jboss AS 7.2.0-Alpha1 from nightly build.
Deployed atmosphere-rest-chat example from 1.0.0 beta5
Following the information given at https://groups.google.com/forum/?fromgroups#!topic/atmosphere-framework/1Dbr58wUM0I[1-25]
The resulting page shows information saying "Atmosphere connected using long-polling"
So I guess there has something to be done in atmosphere first.
Thanks for your Help
-
5. Re: a4j:push websocket in 4.3.0M1
guptaamit Jul 15, 2015 2:34 AM (in response to olivers)Hi Oliver,
Were you able to make push work with websockets?