On Mon, 18 Apr 2005 06:13, Remko Troncon wrote: > Hi, > > 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
the other.
TX
--
Email: Trejkaz Xaoza <[EMAIL PROTECTED]>
Web site: http://trypticon.org/
Jabber ID: [EMAIL PROTECTED]
GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
pgpWDxnqvj0ax.pgp
Description: PGP signature
_______________________________________________ jdev mailing list [email protected] http://mail.jabber.org/mailman/listinfo/jdev
