专注于 JetBrains IDEA 全家桶,永久激活,教程
持续更新 PyCharm,IDEA,WebStorm,PhpStorm,DataGrip,RubyMine,CLion,AppCode 永久激活教程

tigase muc 协议

1. create room
(1) attain unique name for room that will be created 
<iq
    id='unique1'
    to='muc.test-d'
    type='get'>
  <unique xmlns='http://jabber.org/protocol/muc#unique'/>
</iq>

(2)  use the unique name from step 1 to get the form of room and set some values in the form  and send the form by iq
<iq id='create1'
    to='testroom@muc.test-d'
    type='get'>
  <query xmlns='http://jabber.org/protocol/muc#owner'/>
</iq>

<iq type="set" id="create1" to="test006@muc.mml">
<query xmlns="http://jabber.org/protocol/muc#owner">
<x xmlns="jabber:x:data" type="submit">
<field var="muc#roomconfig_persistentroom">
<value>1</value>
</field>
<field var='muc#roomconfig_roomname'>
    <value>test006</value>
</field>
<field var="muc#roomconfig_membersonly">
<value>1</value>
</field>
<field var="muc#roomconfig_changesubject">
<value>1</value>
</field>
</x>
</query>
</iq>

 (3) add members into room that is created just now
<iq id='member1'
    to='testroom1@muc.test-d'
    type='set'>
  <query xmlns='http://jabber.org/protocol/muc#admin'>
    <item affiliation='admin'
          jid='132@test-d' nick='kevin'/>
  </query>
</iq>

文章永久链接:https://tech.souyunku.com/29770

未经允许不得转载:搜云库技术团队 » tigase muc 协议

JetBrains 全家桶,激活、破解、教程

提供 JetBrains 全家桶激活码、注册码、破解补丁下载及详细激活教程,支持 IntelliJ IDEA、PyCharm、WebStorm 等工具的永久激活。无论是破解教程,还是最新激活码,均可免费获得,帮助开发者解决常见激活问题,确保轻松破解并快速使用 JetBrains 软件。获取免费的破解补丁和激活码,快速解决激活难题,全面覆盖 2024/2025 版本!

联系我们联系我们