On 4 October 2013 16:43, Todd Herman <[email protected]> wrote: > We have a custom XMPP server and I am trying to determine what the rules are > related to messages being sent to a bare jid. I just read through RFC 6120 > again and it is vague on this topic. It seems to be up to the server how it > is handled. If this is true, what is the most common practice? >
The common practice is to broadcast to all resources with the highest priority. For example if the user has three resources with priorities: (3) Home (3) Mobile (1) Work Then the message will be sent to both Home and Mobile. The behaviour used to be that the server selected a single resource from the set of highest-priority resources, based on some higher notion of "most available", which might mean the last one to have sent presence or a message for example, but the exact method used was left up to the server. Nowadays just broadcasting is preferred, as it is simpler and more predictable, and usually what the user wants. Regards, Matthew
