Project

General

Profile

how can i judge the message send success in strophe and app

lin jiafu
Added over 1 year ago

How can I do? thinks!


Replies (5)

Added by Wojciech Kapcia TigaseTeam over 1 year ago

There is an extension XEP-0184: Message Delivery Receipts but it's completely client bound therefore you should ask in strophe.js support forums.

Added by lin jiafu over 1 year ago

thanks Wojciech Kapcia. i just want to receive an receipt in the strophe when i send a message. is any method can i do about it. like write plugins in tigase service, if this can work, how can i do it?

Added by Wojciech Kapcia TigaseTeam over 1 year ago

Once again - this is client protocol! If you want to know in strophe that the other client received the message, the other client (your contact's client) must generate correct stanza indicating that it received the message and send it back to you. In that case server only serves to deliver the messages/stanzas.

Added by lin jiafu over 1 year ago

i am sorry about it, my english is poor, i just want an receipt from tigase when i send a message to tigase service,is tigase service can do this:just like normal http request,when i send a http request to the service, the service will return a response to the client, then i can judge if the request is request success or not.thanks again

Added by Wojciech Kapcia TigaseTeam over 1 year ago

You can use XEP-0198: Stream Management: 4. Acks - it's one of the extensions of the XMPP and allows confirming delivery each stanza to the Tigase Server.

    (1-5/5)