根据 XEP-030 :
Each <identity/> element MUST possess the 'category' and 'type' attributes specifying the category and type for the entity
我实际上不明白
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
创造独特的组合外,还有其他用途吗?和 category
?或者别的什么?
最佳答案
现有(类别、类型)元组记录在此处:https://xmpp.org/registrar/disco-categories.html . Conference+text 是一个“文本 session 服务”,换句话说就是一个群聊服务器。
关于xmpp - XMPP disco#info 结果中的 "type"属性是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35266959/