- (void)xmppStream:(XMPPStream *)sender didReceiveError:(NSXMLElement *)error
When is this delegate method likely to happen? Does it happen when sending messages? Or receiving messages? Or both? What could the errors be?
- (void)xmppStream:(XMPPStream *)sender didSendMessage:(XMPPMessage *)message
- (void)xmppStream:(XMPPStream *)sender didReceiveError:(NSXMLElement *)error
I'm not too familiar with sockets (I just remember installing Trumpet Winsock on Windows 95). So that when the message is placed on the socket it has not even begun to transfer the message over the network?
The greater issue is that XMPP Servers don't send delivery receipts, although clients can request delivery receipts from other clients.
Even with this approach, it is hard to know where things went wrong as the flow isn't very short:
Client A => Server => Client B => Server => Client A