Does the xmpp resource change?

I am writing an application that communicates with clients through XMPP. I want to be able to use an existing xmpp account (they all have Google IDs), but I don't want my messages to appear in their regular IM stream.

I think that when my client is with the server, he can use his own resource identifier, for example, Fred.Bloggs@gmail.com / MYCUSTOMID, then I can always send messages to this identifier with a resource tag.

This is the best approach: is the resource identifier tied to a particular client installation or should it change based on the session?

+3
source share
1 answer

Google , , .

, XMPP:

<message to="fred.bloggs@gmail.com">
  <x xmlns='http://my.domain.example.com/my_extension'>stuff</x>
</message>

, , XEP-0115.

+2

Source: https://habr.com/ru/post/1754881/


All Articles