I am creating a chat application using XMPP Framework in iphone. i could get received messages but i am not able to send a message. can any one give me solution for this?? <
Swift 3 answer:
let user = XMPPJID(string: "user@example.com") let msg = XMPPMessage(type: "chat", to: user) msg?.addBody("test message") self.xmppStream.send(msg)