public class SocketFacesListener extends Object implements SystemEventListener
This JSF listener for
WebSocket is properly rendered.
|Constructor and Description|
|Modifier and Type||Method and Description|
Only listens on
If the socket has just switched the
public boolean isListenerForSource(Object source)
public void processEvent(SystemEvent event)
connectedattribute, then render either the
open()script or the
close()script. During an ajax request with partial rendering, it's added as
<eval>by partial response writer, else it's just added as a script component with
target="body". Those scripts will in turn hit
Copyright © 2012–2018 OmniFaces. All rights reserved.