harmonize node-xmpp api

node-xmpp/node-xmpp-server#2