Created
August 3, 2009 03:15
-
-
Save troystribling/160344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xmpp_pubsub_messages.xml | |
*** get user disc#info | |
<iq to='[email protected]' id='disco1' type='get'> | |
<query xmlns='http://jabber.org/protocol/disco#info'/> | |
</iq> | |
*** create [email protected] pubsub root node (sent from account [email protected]) | |
<iq id='29293' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<create node='/home/somewhere.com/user'/> | |
<configure/> | |
</pubsub> | |
</iq> | |
*** delete [email protected] pubsub root node (sent from account [email protected]) | |
<iq id='34963' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'> | |
<delete node='/home/somewhere.com/user'/> | |
</pubsub> | |
</iq> | |
*** create [email protected] pubsub node 'time' (sent from account [email protected]) | |
<iq id='29293' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<create node='/home/somewhere.com/user/time'/> | |
<configure/> | |
</pubsub> | |
</iq> | |
*** delete [email protected] pubsub node 'time' (sent from account [email protected]) | |
<iq id='34963' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'> | |
<delete node='/home/somewhere.com/user/time'/> | |
</pubsub> | |
</iq> | |
**** subscribe to [email protected] pubsub node 'time' (sent from account [email protected]) | |
<iq id='34963' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<subscribe node='/home/somewhere.com/user/time' jid='[email protected]'/> | |
</pubsub> | |
</iq> | |
**** unsubscribe from [email protected] pubsub node 'time' (sent from account [email protected]) | |
<iq id='23513' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<unsubscribe node='/home/somewhere.com/user/time' jid='[email protected]'/> | |
</pubsub> | |
</iq> | |
**** get subscriptions at somewhere.com (sent from account [email protected]) | |
<iq id='24272' to='pubsub.somewhere.com' type='get' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<subscriptions/> | |
</pubsub> | |
</iq> | |
**** get [email protected] pubsub node 'time' publish options (sent from account [email protected]) | |
<iq type='get' to='pubsub.somewhere.com' id='23513'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<options node='/home/somewhere.com/user/time' jid='[email protected]'/> | |
</pubsub> | |
</iq> | |
**** publish a scalar to [email protected] pubsub node 'time' (sent from account [email protected]) | |
<iq id='36339' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<publish node='/home/somewhere.com/user/time'> | |
<item><x type='result' xmlns='jabber:x:data'><field><value>12:00::00 AM GMT</value></field></x></item> | |
</publish> | |
</pubsub> | |
</iq> | |
**** publish a scalar array to [email protected] pubsub node 'time' (sent from account [email protected]) | |
<iq id='36339' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<publish node='/home/somewhere.com/user/time'> | |
<item><x type='result' xmlns='jabber:x:data'> | |
<field> | |
<value>12:00::00 AM GMT</value> | |
<value>Jan 1</value> | |
<value>2020</value> | |
</field> | |
</x></item> | |
</publish> | |
</pubsub> | |
</iq> | |
**** publish a hash to [email protected] pubsub node 'time' (sent from account [email protected]) | |
<iq id='36339' to='pubsub.somewhere.com' type='set' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<publish node='/home/somewhere.com/user/time'> | |
<item><x type='result' xmlns='jabber:x:data'> | |
<field var='time'> | |
<value>12:00::00 AM GMT</value> | |
</field> | |
<field var='day'> | |
<value>1</value> | |
</field> | |
<field var='month'> | |
<value>Jan</value> | |
</field> | |
<field var='year'> | |
<value>2020</value> | |
</field> | |
</x></item> | |
</publish> | |
</pubsub> | |
</iq> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment