[jdev] PubSub question
trejkaz at trypticon.org
Sun Apr 17 16:57:02 CDT 2005
On Mon, 18 Apr 2005 06:13, Remko Troncon wrote:
> Something isn't very clear to me about the use of PubSub.
> Suppose i log in from home with my brand new client, and i want to set an
> avatar. My client requests an instant node to be set (as an end user, i
> can't be bothered with creating nodes myself), the service gives me a fresh
> node, and i start publishing there. A little later, i go to work, install
> the same client, and i want to suddenly change my avatar there. How does my
> client at work know on which node he has to publish ? Should it create a
> new node for himself ? Probably not, since then all the people who saw me
> online earlier and disco-ed me won't know i'm suddenly publishing to
> another node. So, how can i retrieve on what node i was publishing my
> avatar ?
Basically, you would do this the same way as other people. Do a disco query
to your own bare JID, to retrieve the node.
I assume that then you should actually retrieve the avatar in question, so
that the client can correctly display the "current" selection.
And you would have to subscribe to your own avatar metadata, so that if both
clients were logged in at once, a change in one would reflect correctly in
Email: Trejkaz Xaoza <trejkaz at trypticon.org>
Web site: http://trypticon.org/
Jabber ID: trejkaz at jabber.zim.net.au
GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the JDev