Event handler signalled when the connection is closing.
property OnDisconnect: TIdInterceptNotifyEvent;
Description
OnDisconnect is a TIdInterceptNotifyEvent property that represents the event handler signalled when the arbitrated socket descriptor in Connection should be closed. OnDisconnect is triggered in Disconnect prior to releasing the valuein Connection.
Applications must assign a procedure to the TIdInterceptNotifyEvent event handler to allow responding to the event notification.