Connection callbacks interface. Use it to manage a connection.
Triggered when connection failed.
Triggered when connection is successful.
Triggered on disconnect event.