Mercurial > eldonilo > blog
annotate ns.js @ 13:161d4ea1c3f8
Migration of the client-side to XMPP.js instead of Strophe.js.
Drop BOSH support and add WebSockets support.
The server-side is untested, may be broken.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 03 Nov 2011 14:23:10 -0700 |
parents | 461a24a5a788 |
children |
rev | line source |
---|---|
0 | 1 var ns = { |
2 xhtml: 'http://www.w3.org/1999/xhtml', | |
3 atom: 'http://www.w3.org/2005/Atom', | |
4 e: 'urn:eldonilo', | |
5 j: 'jabber:client', | |
6 info: 'http://jabber.org/protocol/disco#info', | |
7 items: 'http://jabber.org/protocol/disco#items', | |
8 data: 'jabber:x:data', | |
9 ps: 'http://jabber.org/protocol/pubsub', | |
10 pse: 'http://jabber.org/protocol/pubsub#event' | |
11 }; | |
12 | |
13 var parsers = {}; | |
14 | |
8
461a24a5a788
Silent errors when testing if we are server- or client-side.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
15 if (typeof module !== 'undefined') |
2
eb5b6d3ab09b
Better import of ns and jid; fix email and missing ns.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
16 module.exports = ns; |