Reputation: 777
I want to know if the message has received at server. I know how to get delivery receipt which means the message is delivered to the user.
xmppMessageDeliveryRecipts = XMPPMessageDeliveryReceipts(dispatchQueue: DispatchQueue.main)
but I want to know if my message has received to the server.
Upvotes: 0
Views: 232
Reputation: 998
there is no way of recognizing that because of deprecated extension for events.you can just understand that message successfully send from your client or not using these functions:
func xmppStream(_ sender: XMPPStream, didSend message: XMPPMessage) {
print(message.body)
}
func xmppStream(_ sender: XMPPStream, didFailToSend message: XMPPMessage, error: Error) {
print(message.body)
}
Upvotes: 3