XMPP For The Web/Win ::: XMPP-FTW (1.16.8)

XEP-0066 Out of band data (OOB)

Usage

OOB will always be set under the oob property of any data objects.

XML to JSON

Both namespaces are handled (jabber:iq:oob and jabber:x:oob) with jabber:iq:oob also having a parameter for sid (stream ID).

    ...
        <query xmlns="jabber:iq:oob" sid="stream-id-1">
            <url>http://www.evilprofessor.co.uk</url>
            <desc>Link description</desc>
        </query>
    ...
    
    ...
        <x xmlns="jabber:x:oob">
            <url>http://www.evilprofessor.co.uk</url>
            <desc>Link description</desc>
        </x>
    ...
    

Will be turned into the following:

    {
        url: "http://www.evilprofessor.co.uk"
        description: "Link description",
        stream: "stream-id-1"
    }
    

With stream only being supported for jabber:iq:oob namespace. All parameters are optional (XEP-0066 states that only url is required).

JSON to XML

Not currently built.

Pages

Fork me on GitHub