I am working on a environment which has inbuilt chat facility over openfire (v3.9.3), signalr and matrix. Where I want to support for same user for multiple sessions. For example user can log on to the chat on different locations (home, office, mobile etc ..) .
But the above scenario I mentioned didn't work as expected so I added route.all-resources property with the value of true. Then I can see a strange behavior, which is if I logged with UserA twice (Lets say UserA-1, UserA-2) and UserB once. And when I send message from UserB to UserA it should go to the both UserA instances (UserA-1, UserA-2).
But what I can see is same message repeating twice (duplicate) on UserA-1. Also lets assume if I have another user UserA-3 then, I can see same message 3 times (triplicate) on UserA-1.
How I can resolve this issue?
Note: I am creating xmppclient instances for user, we create for full JID (with resource appended) and when sending the TO field specified for bare JID (without the resource appended).