TCPSocket.Disconnect

From Xojo Documentation

Method

TCPSocket.Disconnect()

Supported for all project types and targets.

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