Home Ask Login Register

Developers Planet

Your answer is one click away!

n00dl3 February 2016

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

According to XEP-030 :

Each <identity/> element MUST possess the 'category' and 'type' attributes specifying the category and type for the entity

I don't actually understand what does the type attribute stands for.

For example, when I send a disco#info query to my MUC component, I get the following answer:

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

the type is set to "text" but what does it mean ? is there any other purpose than just creating a unique combination with name and category ? Or maybe something else ?


xnyhps February 2016

Existing (category, type) tuples are documented here: https://xmpp.org/registrar/disco-categories.html. Conference+text is a "Text conferencing service", in other words a group chat server.

Post Status

Asked in February 2016
Viewed 2,695 times
Voted 11
Answered 1 times


Leave an answer

Quote of the day: live life