Connect Handler
Connection result callback.
Delivers the result when ai.nexconn.chat.NCEngine.connect is called. On success, onResult provides the connected user ID. On failure, onResult provides the error info. Additionally, onDatabaseOpened notifies when the local database is opened.