These are chat archives for frenchie4111/xmpp-chat-server

28th
Dec 2017
devendrawebdeveloper
@devendrawebdeveloper
Dec 28 2017 10:51

Hello ,

We are implementing Avatar Publish(0084 XMPP).
Do you have any idea, what is sha_key ?
How can we generate in javascript ?

var iq = $iq({ // type: 'set', // }).c('pubsub', { // xmlns: 'http://jabber.org/protocol/pubsub' // }).c('publish', { // node: 'urn:xmpp:avatar:data' // }).c('item', { // id: sha_key // }).c('data',dataURL.replace(/^data:image\/(png|jpg|jpeg);base64,/, ''), { // xmlns: 'urn:xmpp:avatar:data' // });