我正在使用XMPPStream XMPP框架,并且出现以下错误:
<stream:error xmlns:stream="http://etherx.jabber.org/streams">
<connection-timeout xmlns="urn:ietf:params:xml:ns:xmpp-streams">
</connection-timeout>
<text xmlns="urn:ietf:params:xml:ns:xmpp-streams" lang="en">Idle connection
</text>
</stream:error>下面是我使用的代码片段:
let xmppStream = XMPPStream()
xmppStream.addDelegate(self, delegateQueue: .main)
let jabberID = "emad@chat.address.net"
xmppStream.myJID = XMPPJID(string: jabberID)
do {
try xmppStream.connect(withTimeout: XMPPStreamTimeoutNone)
} catch {
print("Something went wrong!")
}发布于 2020-01-20 22:44:32
我也有同样的问题。我来解决这个问题。转到此链接XMPP connect will error connection-timeout
您在委托函数中遇到了问题。去把它修好
https://stackoverflow.com/questions/59704490
复制相似问题