element MUST have category and type attr...">

What is the "type" attribute in XMPP disco # info result

According to XEP-030 :

Each <identity / "> element MUST have category and type attributes defining the category and type of object

I really don't understand what attribute means type.

For example, when I send a disco information request # to my MUC component, I get the following response:

<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>

typeset to "text", but what does it mean? is there any other purpose than to create a unique combination with nameand category? Or maybe something else?

+4
source share
1 answer
+5

Source: https://habr.com/ru/post/1627764/


All Articles