The JavaScript API from the Socket component has a push function. I tried to pass JSON as mentioned in the documentation, and debugging on Chrome and the function was called, but the onMessage handler was not.
Does anyone has an example? I made my tests with PF 5.1.1 + Atmosphere 2.2.3
Thanks
JavaScript Socket push example?
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
Getting started with the atmosphere framework and websocket
start there, since that is the (get started with atmosphere) javascript (websocket/push) example. PrimeFaces Push is only a subset of atmosphere framework.
also, you may want to ask your question in the atmosphere framework (google groups) mail list.
start there, since that is the (get started with atmosphere) javascript (websocket/push) example. PrimeFaces Push is only a subset of atmosphere framework.
also, you may want to ask your question in the atmosphere framework (google groups) mail list.
Howard
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 59 guests