【问题标题】:Idle connection - timeout - XMPP connect空闲连接 - 超时 - XMPP 连接
【发布时间】:2020-04-29 10:48:27
【问题描述】:

我正在使用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>

这是我正在使用的代码 sn-p:

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!")
}

【问题讨论】:

    标签: ios swift xmpp


    【解决方案1】:

    我有同样的问题。我解决这个问题。转到此链接XMPP connect will error connection-timeout

    您的委托函数有问题。去修理它

    【讨论】:

      猜你喜欢
      • 2017-07-19
      • 2010-11-25
      • 2020-05-01
      • 2017-04-19
      • 2012-10-25
      • 2012-04-02
      • 1970-01-01
      • 2014-04-15
      • 1970-01-01
      相关资源
      最近更新 更多