refactor class Xmpp\Connection (2)