【问题标题】:What is the "type" attribute in XMPP disco#info resultXMPP disco#info 结果中的“类型”属性是什么
【发布时间】:2016-02-08 10:09:42
【问题描述】:

根据XEP-030

每个 元素必须拥有指定实体的类别和类型的“类别”和“类型”属性

我真的不明白type 属性代表什么。

例如,当我向我的 MUC 组件发送 disco#info 查询时,我得到以下答案:

<iq to='admin@localhost/986758107-tigase-8' from='muc.localhost' type='result'>
    <query xmlns='http://jabber.org/protocol/disco#info'>
        <identity category='conference' name='Multi User Chat' type='text'/>
        <feature var='jabber:iq:version'/>
        <feature var='urn:xmpp:ping'/>
        <feature var='http://jabber.org/protocol/commands'/>
        <feature var='http://jabber.org/protocol/muc'/>
    </query>
</iq>

type 设置为"text" 但这是什么意思?除了创建与 namecategory 的独特组合之外,还有其他目的吗?还是别的什么?

【问题讨论】:

    标签: xmpp service-discovery tigase


    【解决方案1】:

    现有(类别、类型)元组记录在此处:https://xmpp.org/registrar/disco-categories.html。 Conference+text 是一种“文本会议服务”,也就是群聊服务器。

    【讨论】:

      猜你喜欢
      • 2022-06-22
      • 1970-01-01
      • 2010-12-06
      • 1970-01-01
      • 2011-09-09
      • 2012-10-21
      • 2013-10-30
      • 2015-08-11
      • 2014-03-21
      相关资源
      最近更新 更多