JavaScript Socket push example?

UI Components for JSF
Post Reply
FkJ
Posts: 183
Joined: 08 Jan 2010, 19:16

21 Oct 2014, 21:22

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

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

22 Oct 2014, 17:16

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.
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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 59 guests