processone / tsung

Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc.
http://www.process-one.net/en/tsung/
GNU General Public License v2.0
2.52k stars 404 forks source link

How can i send all XMPP messages to a specific user? #404

Closed anvouk closed 9 months ago

anvouk commented 9 months ago

Hi, I need N clients to send chat messages to a specific user.

It this possible for tsung? Docs doesn't say anything about it.

I need something like the following:

<request>
    <jabber type="chat" ack="local" destination="my_client@example.com" data="TEST"/>
</request>

Thanks

anvouk commented 9 months ago

Took quite a while to figure it out, but here's how:

<request>
    <jabber type="raw" ack="no_ack" data="&lt;message to=&quot;my_client@example.com&quot; type=&quot;chat&quot; &gt;&lt;body&gt;TEST&lt;/body&gt;&lt;/message&gt;"/>
</request>