Specifies the event handler for disconnection requests.
property OnDisconnect: TClientEvent;
Description
OnDisconnect is a TClientEvent event handler that responds to client disconnection requests. OnDisconnect is triggered from the Disconnect method after terminating the TelnetThread and closing the socket connection.
Applications should assign a procedure to the OnDisconnect event handler to perform processing required after closing the socket connection.