In XMPP (i.e. gtalk) we can set resource to our wanting (specifying machine/location/etc) and this works well with all/most servers and clients. But in case of google it doesn't exactly work as expected because each time user connect google appends random string to the resource set by user. This is particularly annoying because many clients differentiate user chats by jid AND resource part which results in multiple windows/tabs open after one is reconnected (and new resource is generated).
tl;dr - is there a way to prevent google from appending random string to resource set by user?
Short answer, there is no way. A resource should be unpredictable for security reasons. And The GTalk server enforces this by adding a random string to your resource.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With