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
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Sends a message from the WebSocket server to the client.
Ejemplo
// Récupère la liste des clients
tabClients is array of websocketClient = WebSocketListeClientConnecté()
// Pour envoyer un message à chacun
FOR EACH oClient OF tabClients
	oClient.Envoie(bufMessage)
END
Sintaxis
Sends(<Client> , <Message>)
<Client>: Variable de tipo websocketClient
Name of the websocketClient variable that corresponds to the client to which the message will be sent.
<Message>: Cadena de caracteres
Message to send.
Observaciones
  • This function is asynchronous the function simply requests that the message be sent to the client. The message can actually be sent later (after <websocketClient variable>.Send has been executed). <websocketClient variable>.Send never returns an error (for example, if the client has been disconnected in the meantime).
  • The WebSocket protocol allows two message formats: binary or string (encoded in UTF-8). <websocketClient variable>.Send automatically chooses the format according to the type of parameter received.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd300awws.dll
Versión mínima requerida
  • Versión 26
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

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