xmpp - XMPP disco#info 结果中的 "type"属性是什么

标签 xmpp service-discovery tigase

根据 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/

相关文章:

使用 XMPP 的 Android 推送通知

go - 如何使用Go在ejabberd中创建账户和添加/删除好友?

java - 使用 Android 扫描 LAN 网络的最佳方式

udp - 分布式服务器实例间的数据广播

android - 无法将 Android 客户端与本地 XMPP 服务器连接

java - 如何创建自定义邀请消息以加入聊天室中的用户 - smack

android - 无法使用node-xmpp客户端连接到GCM

kubernetes - 使用服务发现而不是 Kubernetes 内部 dns 的原因是什么

android - 无法在 android 中创建聊天室并且没有得到服务器(tigase 服务器)的响应

java - 使用 XMPP 协议(protocol)通过 tigase 服务器将字符串数组从一个 Android 发送到另一个 Android