Skip to content

Instantly share code, notes, and snippets.

@tanob
Created November 20, 2009 03:26
Show Gist options
  • Save tanob/239267 to your computer and use it in GitHub Desktop.
Save tanob/239267 to your computer and use it in GitHub Desktop.
adriano@planck:~/Projects/pubsub_test1$ python pubsub_test1.py
DEBUG Loaded Plugin (XEP-0060) Publish-Subscribe
WARNING Deprecated add_handler used for <message><x xmlns='jabber:x:data' /></message>: <bound method xep_0004.handler_message_xform of <sleekxmpp.plugins.xep_0004.xep_0004 object at 0x1007ca310>>.
DEBUG Loaded Plugin (XEP-0004) Data Forms
WARNING Deprecated add_handler used for <iq type='get' xmlns='jabber:client'><query xmlns='http://jabber.org/protocol/disco#info' /></iq>: <bound method xep_0030.info_handler of <sleekxmpp.plugins.xep_0030.xep_0030 object at 0x1007ca510>>.
WARNING Deprecated add_handler used for <iq type='get' xmlns='jabber:client'><query xmlns='http://jabber.org/protocol/disco#items' /></iq>: <bound method xep_0030.item_handler of <sleekxmpp.plugins.xep_0030.xep_0030 object at 0x1007ca510>>.
DEBUG Loaded Plugin (XEP-0030) Service Discovery
DEBUG Did not supply (address, port) to connect to and no SRV support is installed (http://www.dnspython.org). Continuing to attempt connection, using server hostname from JID.
DEBUG SEND: <stream:stream to='ec2-instance.compute-1.amazonaws.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' version='1.0'>
DEBUG RECV: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='61470137' from='ec2-instance.compute-1.amazonaws.com' version='1.0' xml:lang='en'>
DEBUG RECV: <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
DEBUG PROCESSING: {http://etherx.jabber.org/streams}features
WARNING The module tlslite is required in to some servers, and has not been found.
DEBUG Starting SASL Auth
WARNING Deprecated add_handler used for <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl' />: <bound method ClientXMPP.handler_auth_success of <sleekxmpp.ClientXMPP object at 0x100498210>>.
WARNING Deprecated add_handler used for <failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl' />: <bound method ClientXMPP.handler_auth_fail of <sleekxmpp.ClientXMPP object at 0x100498210>>.
DEBUG SEND: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFkbWluAGFkbWlub29ydGxl</auth>
DEBUG RECV: <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
DEBUG PROCESSING: {urn:ietf:params:xml:ns:xmpp-sasl}success
DEBUG SEND: <stream:stream to='ec2-instance.compute-1.amazonaws.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' version='1.0'>
DEBUG RECV: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2500394712' from='ec2-instance.compute-1.amazonaws.com' version='1.0' xml:lang='en'>
DEBUG RECV: <stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>
DEBUG PROCESSING: {http://etherx.jabber.org/streams}features
DEBUG Requesting resource:
DEBUG SEND: <iq xmlns="jabber:client" type="set" id="6"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource /></bind></iq>
DEBUG RECV: <iq id='6' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>[email protected]/459113681258687051295396</jid></bind></iq>
DEBUG PROCESSING: {jabber:client}iq
INFO Node set to: [email protected]/459113681258687051295396
DEBUG SEND: <iq xmlns="jabber:client" type="set" id="8"><session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></iq>
DEBUG RECV: <iq type='result' xmlns='jabber:client' id='8'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
DEBUG PROCESSING: {jabber:client}iq
DEBUG Established Session
DEBUG SEND: <presence xmlns="jabber:client" from="[email protected]/459113681258687051295396" />
Event 'sent_presence' recvd msg {}
create_node_and_send_notification!!!
DEBUG creating form as submit
DEBUG SEND: <iq xmlns="jabber:client" to="ec2-instance.compute-1.amazonaws.com" type="set" id="A" from="[email protected]/459113681258687051295396"><pubsub xmlns="http://jabber.org/protocol/pubsub"><create node="topic1" /><configure><x xmlns="jabber:x:data" type="submit"><field var="FORM_TYPE" type="hidden"><value>http://jabber.org/protocol/pubsub#node_config</value></field><field var="pubsub#node_type" type="text-single"><value>leaf</value></field></x></configure></pubsub></iq>
DEBUG RECV: <presence from='[email protected]/459113681258687051295396' to='[email protected]/459113681258687051295396'/>
DEBUG PROCESSING: {jabber:client}presence
Event 'got_online' recvd msg {'jid': '[email protected]', 'resource': '459113681258687051295396', 'name': '', 'priority': 0, 'to': '[email protected]/459113681258687051295396', 'message': '', 'type': 'available'}
DEBUG STATUS: [email protected]/459113681258687051295396[available]:
DEBUG RECV: <presence from='[email protected]/AdiumF8DFFA0E' to='[email protected]/459113681258687051295396'><priority>1</priority><c node='http://pidgin.im/caps' ver='2.5.9' ext='moodn nickn tunen buzz bob avatar adiumcmd' xmlns='http://jabber.org/protocol/caps'/><x xmlns='vcard-temp:x:update'><photo/></x></presence>
DEBUG PROCESSING: {jabber:client}presence
Event 'got_online' recvd msg {'jid': '[email protected]', 'resource': 'AdiumF8DFFA0E', 'name': '', 'priority': 1, 'to': '[email protected]/459113681258687051295396', 'message': '', 'type': 'available'}
DEBUG STATUS: [email protected]/AdiumF8DFFA0E[available]:
DEBUG RECV: <iq from='ec2-instance.compute-1.amazonaws.com' to='[email protected]/459113681258687051295396' id='A' type='result'/>
DEBUG PROCESSING: {jabber:client}iq
Node created!
DEBUG SEND: <iq xmlns="jabber:client" to="ec2-instance.compute-1.amazonaws.com" type="set" id="C" from="[email protected]/459113681258687051295396"><pubsub xmlns="http://jabber.org/protocol/pubsub"><subscribe node="topic1" jid="[email protected]" /></pubsub></iq>
DEBUG RECV: <iq from='ec2-instance.compute-1.amazonaws.com' to='[email protected]/459113681258687051295396' id='C' type='error'><error code='400' type='modify'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><invalid-jid xmlns='http://jabber.org/protocol/pubsub#errors'/></error><pubsub xmlns='http://jabber.org/protocol/pubsub'><subscribe node='topic1' jid='[email protected]'/></pubsub></iq>
DEBUG PROCESSING: {jabber:client}iq
DEBUG SEND: <iq xmlns="jabber:client" to="ec2-instance.compute-1.amazonaws.com" type="set" id="E" from="[email protected]/459113681258687051295396"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><delete node="topic1" /></pubsub></iq>
DEBUG RECV: <iq from='[email protected]/AdiumF8DFFA0E' to='[email protected]/459113681258687051295396' type='get' id='purpleb1008179'><query xmlns='jabber:iq:version'/></iq>
DEBUG PROCESSING: {jabber:client}iq
DEBUG RECV: <iq from='[email protected]/AdiumF8DFFA0E' to='[email protected]/459113681258687051295396' type='get' id='purpleb100817a'><query xmlns='jabber:iq:last'/></iq>
DEBUG PROCESSING: {jabber:client}iq
DEBUG RECV: <iq from='ec2-instance.compute-1.amazonaws.com' to='[email protected]/459113681258687051295396' id='E' type='result'/>
DEBUG PROCESSING: {jabber:client}iq
Node deleted!
^CDEBUG Keyboard Escape Detected
** Called -- disconnected
DEBUG SEND: </stream:stream>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment