ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / WebSocket
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<websocketClient variable>.Disconnect (Function)
In french: <Variable websocketClient>.Déconnecte
Disconnects a client from a WebSocket server.
Example
// Récupère la liste des clients
tabClients is array of websocketClient = WebSocketListConnectedClient()
// Déconnecte certains clients
FOR EACH oClient OF tabClients
	IF oClient.Déconnecte() THEN
		oClient.Déconnecte()
	END
END
Syntax
<Client>.Disconnects()
<Client>: websocketClient variable
Name of the websocketClient variable that corresponds to the client to be disconnected.
Remarks
  • The client disconnection process is called when the client is disconnected.
  • This function is asynchronous the function only requests the client to disconnect. The client can be actually disconnected later (after <websocketClient variable>.Disconnect has been executed). <websocketClient variable>.Disconnect never returns an error (for example, if the client has been disconnected in the meantime).
Business / UI classification: Business Logic
Component: wd300awws.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help