Messages are loaded from the manual and parsed into this page. The socket is listening on all incoming messages from the manual. Additionally, all outgoing messages are known by this demo script along with example payloads.
To use this demo start typing in a message at the bottom of the page (autocomplete in place). Once you have selected a message the payload box will be filled with an example message. Click 'send' to send the message, the DOM will be updated to reflect your messages. The string you enter must be valid JSON in order for it to be parsed.
Store valid outgoing payloads for reuse?
Ctrl/Cmd + click on the payload boxes to zoom and once again to zoom back out. You can also zoom the outgoing payload box when creating longer JSON strings.
Hint: You'll probably want to start with 'xmpp.login'.