OnDisconnect Event  

The client has disconnected from the server.


Sub object_OnDisconnect ( [Index As Integer,] ByVal ClientId As Variant )


An integer value which uniquely identifies the client session.


The OnDisconnect event occurs when the client disconnects from the server or when the server terminates the connection to the client by calling the Disconnect method. It is not required for the application to explicitly disconnect the client within the event handler, and the application cannot prevent the client from disconnecting from the server.

This event may not occur for a each client session when the server is reset or the control instance is disposed without the application first calling the Stop method to shutdown the server.

See Also

OnCommand Event, OnConnect Event