The OnDisconnect event is generated when a connection is terminated.
Sub object_OnDisconnect ( [Index As Integer] )
The OnDisconnect event is generated when the connection is terminated by the server.
OnConnect Event