ejabberd - Comments for "Can i exchange custom messages between client and client having custom format?" https://www.ejabberd.im/node/2781 en Possible solution; also check Entity Capabilities https://www.ejabberd.im/node/2781#comment-51649 <p>I found how to do it in ejabberd, but I didn't check if that's the better way in Jabber/XMPP.</p> <p>Send information to another user:</p> <div class="codeblock"><code>&lt;message to=&#039;test2@localhost/Tka&#039;<br /> id=&#039;1&#039;<br /> type=&#039;chat&#039;&gt;<br />&nbsp; &lt;x xmlns=&#039;jabber:x:clientdetails&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;name&gt;&lt;/name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature-id&gt;2&lt;/feature-id&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature-set&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;feature id=&#039;1&#039;&gt;FileTransfer&lt;/feature&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;feature id=&#039;2&#039;&gt;FileSharing&lt;/feature&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/feature-set&gt;<br />&nbsp; &lt;/x&gt;<br />&lt;/message&gt;</code></div> <p>Broadcast some information to all the contacts:</p> <div class="codeblock"><code>&lt;presence&gt;<br />&nbsp; &lt;x xmlns=&#039;jabber:x:clientdetails&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;name&gt;&lt;/name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature-id&gt;2&lt;/feature-id&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature-set&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;feature id=&#039;1&#039;&gt;FileTransfer&lt;/feature&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;feature id=&#039;2&#039;&gt;FileSharing&lt;/feature&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/feature-set&gt;<br />&nbsp; &lt;/x&gt;<br />&lt;/presence&gt;</code></div> <p>Also, check <noindex><a href="http://www.xmpp.org/extensions/xep-0115.html" rel="nofollow" >XEP-0115: Entity Capabilities</a></noindex> because maybe it's interesting for you. Clients like Psi 0.11 and Tkabber 0.10 already implement it.</p> Sun, 20 Jan 2008 11:11:50 +0000 mfoss comment 51649 at https://www.ejabberd.im