Updated Client to the new MQTTConnection constructor.