This module replaces response for standard request of room discovery IQ ( https://xmpp.org/extensions/xep-0045.html#disco-rooms ):
<iq from='[email protected]/pda'
id='zb8q41f4'
to='chat.shakespeare.lit'
type='get'>
<query xmlns='http://jabber.org/protocol/disco#items'/>
</iq>
Response includes counter of members and online users. Also it includes affiliation status and role of current user for this room.
Example of response:
<iq from='chat.shakespeare.lit'
id='zb8q41f4'
to='[email protected]/pda'
type='result'>
<query xmlns='http://jabber.org/protocol/disco#items'>
<item jid="[email protected]" name="укенг (0)">
<members total="0" online="0"/>
<role value="none"/>
<affiliation value="none"/>
</item>
<item jid="[email protected]" name="test (1)">
<members total="1" online="1"/>
<role value="moderator"/>
<affiliation value="owner"/>
</item>
....
<item jid='[email protected]'
name='A Dark Cave'>
....
</item>
</query>
</iq>
apt install gcc libssl-dev libexpat1-dev libyaml-dev g++ zlib1g-dev
Sergey Loguntsov mailto: [loguntsov][gmail.com]
MIT