TCPSocket.Disconnect
From Xojo Documentation
Method
Disconnects the socket, resets it, and fires a SocketCore Error event with a 102 error to let you know that the socket has been disconnected.
Example
This example disconnects the EasyTCPSockets that were opened.
Connector.Disconnect
Listener.Disconnect
Listener.Disconnect