Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Get Acknowledgement of pubsub Publish Message from Strophe.js

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 582
    Answer it

    I am using Strophe.js to connect with XMPP server in angular4. I send message using connectionXmpp.connection.pubsub.publish() method. How do I get acknowledgement whether message is received by subscriber or not. Right now I haven't get any callback from strophe in response. Please tell what I missing or incorrect.

     

    connectionXmpp.connection.pubsub.publish(nodeKey, payload, messageId, this.onPublish((response) => { console.log(response); }));
    

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: