refactor class Xmpp\Stream