ZK AU Engine"

From Documentation
(Created page with "{{ZKConfigurationReferencePageHeader}} =WebSocketEndPoint= [since 8.5.0] [Required] Class: <javadoc>org.zkoss.zkmax.au.websocket.WebSocketEndPoint</javadoc> A new ZK Update E...")
 
Line 5: Line 5:
 
  [Required] Class: <javadoc>org.zkoss.zkmax.au.websocket.WebSocketEndPoint</javadoc>
 
  [Required] Class: <javadoc>org.zkoss.zkmax.au.websocket.WebSocketEndPoint</javadoc>
  
A new ZK Update Engine which is based on WebSocket, the EndPoint handles ping/pong messages from and to client.
+
A new ZK Update Engine which is based on WebSocket, the EndPoint handles ping/pong messages from and to the client.
 +
Supports only browsers that support WebSocket natively.
  
 
To enable WebSocket Connection, add the following listener into zk.xml
 
To enable WebSocket Connection, add the following listener into zk.xml

Revision as of 10:09, 17 October 2017


WebSocketEndPoint

[since 8.5.0]
[Required] Class: WebSocketEndPoint

A new ZK Update Engine which is based on WebSocket, the EndPoint handles ping/pong messages from and to the client. Supports only browsers that support WebSocket natively.

To enable WebSocket Connection, add the following listener into zk.xml

	<listener>
		<listener-class>org.zkoss.zkmax.au.websocket.WebSocketWebAppInit</listener-class>
	</listener>

To change the URL pattern, please refer to this library property.

When WebSocket connection is enabled, we'll use WebSocketServerPush by default when server-push started.

Note that we cannot guarantee the accessing of the information provided by http requests when WebSocket connection is enabled.



Last Update : 2017/10/17

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.