jsf - How to close a primefaces push socket connection -


I have a problem with the primhese push I jsf2.2, jetty9.1 with cdi1.2 and primetime 5.0 Use.

In my opinion, I connect to a socket

    

The handset message function is called on every push event that works just fine. But I should be able to disconnect from that socket with the AJAX button.

  & lt; P: commandButton value = "Ajax Discconect" onclick = "disconnectFromSocket ()" />  

To stop the connection I could not find a built-in method in the PMFS socket doctor. My idea is to call a Javascript function, if the command button is clicked, which closes the socket connection

Unfortunately I do not know how to get open primetime socket connection in javascript And if it is possible to stop them in this way.

Any help would be appreciated.

/ Div>


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -