Project

General

Profile

Multiple devices

Keren Meir
Added over 5 years ago

Hi,

I'm checking the behavior of the system while multiple devices of the same user are connected (i.e tablet, mobile and pc)

So I'm working with a debugger, and connecting 2 devices of the same user.

When one device changes his status (presence), I put a break point in the presence plugin and see only the session that made the changes.

Can I see all other devices (of this user) as well?

As I see, the device sends the presence packet to the second device, so he knows somehow that other session exist, but how?


Replies (4)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Check parentSession object - from there you can get list of all XMPPResourceConnection for that JID.

Added by Keren Meir over 5 years ago

Thank you very much, I looked for it and didn't see it.

Thanks!

Added by Keren Meir over 5 years ago

If I work in cluster mode, one sess is connected to cluster 1, second sess is connected to cluster2. (both of the same user)

In that scenario I won't see the second device in parentSession, right?

Is there another way to see the other sess?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

No, session manager only contains entries from one node.

One way would be to use remote debugging to attach to second node.

    (1-4/4)