-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 4/2/13 10:21 AM, Leon Roy wrote:
> However when a new room is created I'd like to push some sort of
> pubsub or presence event to users so they don't have to refresh
> manually. Is there a command in the MUC spec I'm missing or a XEP
> (even an experimental one) which covers this type of
> functionality?
Given how long XEP-0045 is, you might imagine that it would define
this feature. ;-) However, XEP-0045 is all about MUC rooms and not so
much about MUC services. Using pubsub for this feature seems
reasonable. One way of looking at it is that you'd like to treat the
MUC service as a pubsub root node, which is why we might want to say
something about this in the MUC Eventing Protocol spec (XEP-0316).
In fact the feature applies more generally: what you want is a
notification whenever a new item is added to the result set for a
disco#items query (which might apply to any entity that could have
lots of items associated with it). So I think it would be good to
define a payload for this use case, although we could probably just
use the format from XEP-0030.
Thus:
<message from='chat.shakespeare.lit'
to='[email protected]/globe'
type='headline'
id='zns61f38'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='http://jabber.org/protocol/disco#items'>
<item id='ehs51f40'>
<item xmlns='http://jabber.org/protocol/disco#items'
jid='[email protected]'
name='The New Room'/>
</item>
</items>
</event>
</message>
That looks strange with the doubled <item/> elements qualified by
different namespaces, eh? But other than that it seems mostly reasonable.
Peter
- --
Peter Saint-Andre
https://stpeter.im/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJRWwvOAAoJEOoGpJErxa2pd2cP/R7ab0roUay/gcLBGP9/C/6Q
Sr30sfjHInp+s7mlbet0/XHok6WXXwsJ7rmV32meaZcdsA2R7ItA8waJtyvSvxts
V6cCo6epya/NBawA4xxcJmpdejoAr+QPlG72mUYLZXVXmgkR57DxYCxK28xKpMMu
hsmMDgmVe8pPFBXC3v1TtevoX9BS5Z6CQUOwaKCFShu1uv7fwRwC+msJMs0zqyDl
5xTWtYayZyXp6+atOD7Obk875agOseSSa2sY4SWrZA6P5JGGVAbuQ3lxIleH3f8K
yGy/WhdrJSWrid2/cDK0Tb/TLLh+APfDi6yMt8iM73TrCkReHYpjt4d2KLjJvgE2
b4T9KujFV0UrMnHn4ElU+NKAeU5wRcP0zfoV5nNuawpOyYlNv+ZtT7TBcdenzTEn
BaXzIwIX4+zcznNg+p5KzQT3OYwBhYrauNuj5tzFZNs1H2KaV3KvFLhuNF6SZTbW
ka99fA8/fHsdQFQVj+q4cDfk0/sXRX3/7oLvmnj6F3p6FhV6odrwT9yadHHFmMGh
vIEPT2nwCHM3QknAT7fDaZys9XjOqFZQ9YoIJKrzTOkUOVahbdzkogZ8KIAFoGSz
J0pYYWvTfvZasHeMec8GhryoazskDfXxQgrbU75swNWhPSDS6ae5872uZXTyl9J/
X0w5j2BtJ+5Bc1pW/n/P
=Fx/e
-----END PGP SIGNATURE-----