From Xojo Documentation
Occurs when a connection has been established.
If you have provided a username and password, the authentication has not taken place yet when this event fires. All commands which require that the user is authenticated will return an error. In such a case, move your code into the LoginSuccessful event.