OnDisconnect Event  
 

The OnDisconnect event is generated when a connection is terminated.

Syntax

Sub object_OnDisconnect ( [Index As Integer] )

Remarks

The OnDisconnect event is generated when the connection is terminated by the remote host. This event is only generated for asynchronous sockets when the Blocking property is set to False.

See Also

OnConnect Event