Client now has configurable on_connect and on_disconnect callbacks