[JDEV] my idea for groupchat (by example)

Oliver George slimy at users.sourceforge.net
Mon Jun 26 05:30:38 CDT 2000


Example: User changing/setting nickname
------------------------------------------
(user -> server)

<iq from="jid at jserver" to="gcserver" type="set">
 <query xmlns="jabber:iq:metanick">
   <nickname>slimy</nickname>
   <nickname>slimy_</nickname>
   <nickname>slimy__</nickname>
 </query>
</iq>


(server -> user)

<iq from="result"/>
... or use a get and receive the nickname what was accepted


Example: User joins a group
------------------------------------------

(user -> server)

<presence to='groupname at gcserver'/>
... that is the most ugly bit, it looks everywhere else the gid would
appear before the '@'

(server -> all group members)

<presence from='gid at gcserver/groupname'>
 <show>nickname</show>
</presence>


Example: User sends message to group
------------------------------------------

(user -> server)

<message to='gcserver'>
 <thread>groupname</thread>
 <body>hi</body>
</message>


(server -> members)

<message from='gid at gcserver/nick'>
 <thread>groupname</thread>
 <body>hi</body>
</message>


Example: User sends private message to group
------------------------------------------

(user -> server)

<message to='gid at gcserver'>
 <body>hi</body>
</message>


(server -> destuser)
<message from='gid at gcserver/nick'>
 <body>hi</body>
</message>




More information about the JDev mailing list