PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV and WEBDEV 26 feature!
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
Disconnects a client from a WebSocket server.
Example
// Retrieve list of clients
arrClients is array of websocketClient = WebSocketListConnectedClient()
// Disconnect some clients
FOR EACH oClient OF arrClients
IF bDisconnect(oClient) THEN
WebSocketDisconnect(oClient)
END
END
Syntax
WebSocketDisconnect(<Client>)
<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 : it simply requests the disconnection of the client. The client can be actually disconnected later (after WebSocketDisconnect has been executed). WebSocketDisconnect never returns an error (for example, if the client has been disconnected in the meantime).
Business / UI classification: Business Logic
Component: wd260awws.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment