Add Client.onConnect event