PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV and WEBDEV 26 feature!
  • Properties specific to the description of websocketClient variables
  • WLanguage functions that use the websocketClient type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
websocketClient (Type of variable)
In french: websocketClient
AjaxNot available
The websocketClient type is used to identify and define all the advanced characteristics of a client connected to a WebSocket server. The characteristics of this client can be defined and modified using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
// Retrieves the list of customers
arrClients is array of websocketClient = WebSocketListConnectedClient()
// To send a message to each client
FOR EACH oClient OF arrClients
WebSocketSend(oClient, bufMessage)
END
Remarks

Properties specific to the description of websocketClient variables

The following properties can be used to handle clients connected to a WebSocket server:
Property nameType usedEffect
ConnectedBoolean
  • True if the client is still connected,
  • False otherwise.
This property is available in read-only mode.
IPCharacter stringClient IP address.
This property is available in read-only mode.
RemarkAll typesBusiness logic data associated with this client. This data is written by programming, to be reused later. The default value is an empty string ("").
Using this property, the global context or another client can obtain information about this client.

WLanguage functions that use the websocketClient type

Versions 26 and later
WebSocketDisconnect
New in version 26
WebSocketDisconnect
WebSocketDisconnect
Disconnects a client from a WebSocket server.
Versions 26 and later
WebSocketExecute
New in version 26
WebSocketExecute
WebSocketExecute
Runs a global Procedure in the context of a client connected to the WebSocket server.
Versions 26 and later
WebSocketSend
New in version 26
WebSocketSend
WebSocketSend
Sends a message from the WebSocket server to the client.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment