title: xmpppy: how to get auth response from server
body: <p>Upon registration attempt, server sends a message containing a token, which should later be passed in messages during the conversation. Something like</p>
  
  <pre><code>{
   "from" : "jid@server",
   "to" : "jid@client",
   "type" : "token",
   "token" : "T0K3N"
  }
  </code></pre>
  
  <p>I tried the simple client connection sequence:</p>
  
  <pre><code>c = xmpp.Client('myClient')
  c.connect(server=(localhost, 5222))
  c.auth('jid', 'password')
  </code></pre>
  
  <p>And connection establishes successfully. However, I'm not getting token from server. How can I listen and consume the reply?</p>
  
  <p>Edit: I see that server tries to send the token, but fails with "cannot relay to offline receiver" message. Do I connect incorrectly?</p>