Skip to content

Instantly share code, notes, and snippets.

@sebdeckers
Created October 6, 2009 18:58
Show Gist options
  • Save sebdeckers/203316 to your computer and use it in GitHub Desktop.
Save sebdeckers/203316 to your computer and use it in GitHub Desktop.
Message is stripped of XHTML-IM and other data:
SENT: <message xml:lang="en" from="[email protected]/Pandion" type="groupchat" to="[email protected]"><body>test</body><html xmlns="http://jabber.org/protocol/xhtml-im"><body style="font-style: normal; font-family: calibri; color: #008080; font-size: 22pt; font-weight: normal" xmlns="http://www.w3.org/1999/xhtml">test</body></html><x xmlns="jisp:x:jep-0038"><name>shinyicons</name></x></message>
RECV: <message xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="[email protected]/cbas" type="groupchat" to="[email protected]/Pandion"><body>test</body></message>
MUC does not seem to implement reporting of "Allowable Namespaces" as per XEP-0045:
SENT: <iq to="[email protected]" type="get" id="abc"><query xmlns="http://jabber.org/protocol/disco#info" node="http://jabber.org/protocol/muc#traffic"></query></iq>
RECV: <iq xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="[email protected]" type="result" to="[email protected]/Pandion" id="abc"><query xmlns="http://jabber.org/protocol/disco#info"><identity category="conference" type="text" name=""/><feature var="http://jabber.org/protocol/muc"/><feature var="muc_semianonymous"/><feature var="muc_unmoderated"/><feature var="muc_open"/><feature var="muc_temporary"/><feature var="muc_public"/><feature var="muc_unsecured"/></query></iq>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment