1 # Pubsub: Basic support
7 // admin@localhost is assumed to have node creation privileges
18 <iq type="set" to="pubsub.localhost" id='create1'>
19 <pubsub xmlns="http://jabber.org/protocol/pubsub">
20 <create node="princely_musings"/>
25 <iq type="result" id='create1'/>
30 -- <iq type="set" to="pubsub.localhost">
31 -- <pubsub xmlns="http://jabber.org/protocol/pubsub">
32 -- <subscribe node="princely_musings" jid="${Romeo's full JID}"/>
40 <iq type="set" to="pubsub.localhost" id='sub1'>
41 <pubsub xmlns="http://jabber.org/protocol/pubsub">
42 <subscribe node="princely_musings" jid="${Juliet's full JID}"/>
47 <iq type="result" id='sub1'/>
50 <iq type="set" to="pubsub.localhost" id='pub1'>
51 <pubsub xmlns="http://jabber.org/protocol/pubsub">
52 <publish node="princely_musings">
54 <entry xmlns="http://www.w3.org/2005/Atom">
55 <title>Soliloquy</title>
56 <summary>Lorem ipsum dolor sit amet</summary>
64 <iq type="result" id='pub1'/>
67 <message type="headline" from="pubsub.localhost">
68 <event xmlns="http://jabber.org/protocol/pubsub#event">
69 <items node="princely_musings">
71 <entry xmlns="http://www.w3.org/2005/Atom">
72 <title>Soliloquy</title>
73 <summary>Lorem ipsum dolor sit amet</summary>
81 <iq type="set" to="pubsub.localhost" id='unsub1'>
82 <pubsub xmlns="http://jabber.org/protocol/pubsub">
83 <unsubscribe node="princely_musings" jid="${Juliet's full JID}"/>
88 <iq type="result" id='unsub1'/>
93 <iq type="set" to="pubsub.localhost" id='del1'>
94 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
95 <delete node="princely_musings"/>
100 <iq type="result" id='del1'/>