[jdev] questions using pubsub
Peter Saint-Andre
stpeter at jabber.org
Thu Oct 27 14:43:46 CDT 2005
On 2005-07-07, Orion wrote:
> Hi,
>
> I am new to jabber, using ejabberd 0.9.1 and Psi.
>
> I am able to create a node and publish an item.
> for example:
> =======================================================
> <iq type="set"
> from="admin at localhost"
> to="pubsub.localhost"
> id="publish1">
> <pubsub xmlns="http://jabber.org/protocol/pubsub">
> <publish node="home/localhost/admin/egw">
> <item id="current">
> <tune xmlns="http://jabber.org/protocol/tune">
> <artist>Ralph Vaughan Williams</artist>
> <title>Concerto in F for Bass Tuba</title>
> <source>Golden Brass: The Collector's Edition</source>
> </tune>
> </item>
> </publish>
> </pubsub>
> </iq>
> =======================================================
>
> I found that subscribers can only view the message in XML console. My question
> is: How can the subscribers get the published item like normal chat
> message(signal the subscriber for incoming message)?
The message doesn't contain a <body/> element, so clients that don't
know about pubsub don't have anything to show. One solution is for the
pubsub service to include a summary in the <body/> element (perhaps it
would be helpful to define the summary mechanism in JEP-0060).
Peter
--
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3641 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.jabber.org/jdev/attachments/20051027/a0c5b991/attachment-0002.bin>
More information about the JDev
mailing list