multiParty.sendPublicKey just returns the message to send, replace by xmpp.sendPublicKey which actually sends it.