XMPP is amazing federated, realtime, messaging system
Its mature, stable, and secure
XMPP uses XML so it can be extensible
Developers want to build realtime apps quickly & easily
Browsers are all about native JSON
Web developers have an aversion to XML
...its non-trivial to translate without losing extensibility
<message to="all@people.land/britain" id="1"
from="richardIII@royal.ty/ground" type="chat">
<body>My kingdom for a JSON-based interface!</body>
</message>
{
to: 'romeo@shakespeare.lit/home',
message: 'O, XML, XML! whereart art thou XML?'
}
<iq type="set" to="pubsub.example.com" id="1">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="blog">
<item>
<entry xmlns="http://www.w3.org/2005/Atom">
<content>I got tired typing this!</content>
<entry>
</item>
</publish>
</pubsub>
</iq>
{
to: 'pubsub.example.com',
node: 'blog',
content: {
atom: {
content: 'So much quicker and easier!'
}
}
}