If I understand your question correctly, you want to add additional messages to your messages, which should only be interpreted by the receiving client. Thus, you only need the XMPP server as a router from client A to client B. This will work in conjunction with the Google Talk server and any other server. This extensibility is one of the core features of XMPP.
Openfire plugins and component protocol are for other use cases.
Here is an example of adding custom payloads:
So something like:
<message to="user@server.com">
<mytag xmlns="mycompany.com/mynamespace"/>
</message>
or
<message to="user@server.com">
<mytag xmlns="urn:xmpp:mynamespace:v1"/>
</message>
source
share