4

根据XEP-030

每个 <identity/> 元素必须拥有指定实体的类别和类型的 'category' 和 'type' 属性

我实际上不明白该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"是什么意思?name除了用and创建一个独特的组合之外,还有其他目的category吗?或者也许是别的什么?

4

1 回答 1

5

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

于 2016-02-08T10:48:17.830 回答