-
nicoco_
how do I broadcast PEP nicknames and PEP avatars to "newly" connected resources? Are they supposed to request the items themselves, or should I listen to their "got online" presences, and broadcast nicknames and avatar (metadata) everytime they connect? should I keep track of what I've sent to which resource in order to avoid sending the same thing to the same resource everytime they get online?
-
pep.
nicoco_, they'll request it having +notify in their disco
-
pep.
https://xmpp.org/extensions/xep-0163.html#example-4 and the text around it, as well as the following example
-
nicoco_
ok oh, so when they connect, I should disco query on user@server/resource, and IF the they have avatar+notify then I broadcast the avatar metada✎ -
nicoco_
ok oh, so when they connect, I should disco query on user@server/resource, and IF they have avatar+notify int here, then I broadcast the avatar metada ✏
-
nicoco_
ok oh, so when they connect, I should disco query on user@server/resource, and IF they have avatar+notify int here, then I broadcast the avatar metadata ✏
-
pep.
When they connect you should receive their caps in their presence, and from that you can see if they have +notify (if you've cached caps, or otherwise query disco#info again)
-
Link Mauve
nicoco_, do the disco query only if you don’t have their caps in cache already, because otherwise you already know what’s going to be sent back.
-
nicoco_
thanks peps and Link Mauve! I *think* slixmpp handles caching disco items from caps, I will try to not re-invent the wheel here.