[JDEV] IQ queries sent to client vs. handled by server?
tcharron at ductape.net
Wed Aug 1 11:05:17 CDT 2001
Quoting Jens Alfke <jens at mac.com>:
> I've got a question regarding nonstandard IQ queries, i.e. ones where I
> make up my own namespace that is not already known to the server.
> According to the "Generic XML Namespace Storage" draft document, such
> queries will get or set XML data stored on the server per-client: "If
> the client does an iq set in any XML namespace to the server, it is
> stored on that users account. That XML is then accessible to anyone
> doing an iq get with the same namespace to that user account."
> This is great in some circumstances. But what if I want to define
> queries that are "live" and go directly to the client? (Isn't that what
> the JAM project is all about?) How do I control who resolves the
The 'to' JID? An example would be a jabber:iq:browse message. If I browse
to 'tcharron at jabber.org', server handles it. If I browse
to 'tcharron at jabber.org/WinJab', it goes to the resource. If you want it
handles by the client, address it to a resource. If not, directly to the JID
alone. This also depends on the modules handling it on the server, though, as
to if they want to allow it to pass, or simply eat every message in sight that
it thinks it owns..
<< Wanted: One decent sig >>
<< Preferably litle used >>
More information about the JDev