On Thu, Mar 5, 2009 at 5:12 PM, Klaus Hartke
<[email protected]> wrote:
>> >   Q4. Should stanzas directed to a bare jid always be sent
>> >       via the server, or should the client look at received
>> >       presence stanzas from that jid and, if the client has
>> >       a end-to-end connection with the resource of the
>> >       highest priority, send it directly over the new path?
>>
>> I think that if you have an e2e stream, you would prefer to use that
>> (it's encrypted, after all).
>
> Right. But there are some cases in which a server handles a stanza on
> behalf of a user. If you use the new path for everything (except the
> control messages and stanzas directed to other full jids), you'd have to
> inspect each outgoing stanza if it matches one of those cases, and if it
> does, send it over the old path for the server to be able to handle it.

I think that you send full-jid stanzas (to the right full jid!) over
the e2e, and anything to bare-jid, or other resources goes through the
server. What do you send to the bare jid that the server /doesn't/
handle for you in some way?

/K

Reply via email to