Skip to content

Instantly share code, notes, and snippets.

@powdahound
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save powdahound/bf7411ff4f6c71109932 to your computer and use it in GitHub Desktop.
Save powdahound/bf7411ff4f6c71109932 to your computer and use it in GitHub Desktop.
<!-- send to the user's JID -->
<iq type="get" to=1_1@chat.hipchat.com" id="123">
<query xmlns="http://hipchat.com/protocol/history" maxstanzas="50" type="chat" />
</iq>
<!-- results come back as normal <message> stanzas like they do when joining a room.
the iq response may come back before the messages do. its just a confirmation that we got the request. -->
@squallstar
Copy link

thanks a lot for this gist, I was finally able to implement chat history and it works great ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment