AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / WebSocket
  • Properties specific to websocketClient variables
  • WLanguage functions that use the websocketClient type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
websocketClient (Variable type)
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. You can define and change the characteristics of this client using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Récupère la liste des clients
tabClients is array of websocketClient = WebSocketListConnectedClient()
// Pour envoyer un message à chacun
FOR EACH oClient OF tabClients
	WebSocketSend(oClient, bufMessage)
END
Properties

Properties specific to 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 read-only.
IPCharacter stringClient IP address.
This property is read-only.
NoteAll typesBusiness logic data associated with this client. This data is written through 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.
Remarks

WLanguage functions that use the websocketClient type

WebSocketDisconnectDisconnects a client from a WebSocket server.
WebSocketExecuteExecutes a procedure in the context of a client connected to the WebSocket server.
WebSocketSendSends a message from the WebSocket server to the client.
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local