【问题标题】:How to send Available Stanza in XMPP IOS using XMPPFramework?如何使用 XMPPFramework 在 XMPP IOS 中发送可用节?
【发布时间】:2018-07-23 10:25:10
【问题描述】:

我正在发送<presence/> 节以使用户在 XMPP 中在线,但我收到如下内容:

<presence xmlns="jabber:client" from="user8@192.168.0.167/Object" to="user7@192.168.0.167"><x xmlns="vcard-temp:x:update"><photo></photo></x><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://github.com/robbiehanson/XMPPFramework" ver="k6gP4Ua5m4uu9YorAG0LRXM+kZY="></c></presence>

里面没有可用的类型,谁能帮我解决一下?

【问题讨论】:

    标签: ios objective-c xmpp xmppframework


    【解决方案1】:

    当 xmpp &lt;presence&gt; 中没有类型时,它总是显示可用性。对于其他类型,如 awayunavailable,有一个类型。有关更多信息,请参阅 [https://xmpp.org/rfcs/rfc3921.html#presence]

    【讨论】:

      猜你喜欢
      • 2014-11-23
      • 2016-10-25
      • 2012-04-29
      • 1970-01-01
      • 2013-12-02
      • 2014-09-23
      • 2017-09-19
      • 2014-06-24
      • 1970-01-01
      相关资源
      最近更新 更多