comparison mod_json_streams.wiki @ 176:8426db59abf0

mod_json_streams: Grammar.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 02 Apr 2011 06:15:02 +0500
parents 01fb5e97f22b
children
comparison
equal deleted inserted replaced
175:01fb5e97f22b 176:8426db59abf0
3 3
4 = Introduction = 4 = Introduction =
5 5
6 This plugin encodes XMPP as JSON. This is an implementation of [http://xmpp.org/extensions/xep-0295.html XEP-0295: JSON Encodings for XMPP]. 6 This plugin encodes XMPP as JSON. This is an implementation of [http://xmpp.org/extensions/xep-0295.html XEP-0295: JSON Encodings for XMPP].
7 7
8 Simply loading this modules makes Prosody accept JSON for C2S streams (legacy XML clients are still supported). 8 Simply loading this module makes Prosody accept JSON on C2S streams (legacy XML clients are still supported).
9 9
10 For BOSH, it requires mod_bosh be loaded, and JSON should be directed to the `/jsonstreams` HTTP path. 10 For BOSH, it requires mod_bosh be loaded, and JSON should be directed at the `/jsonstreams` HTTP path.
11 11
12 JSON for S2S isn't supported due to the lack of a discovery mechanism, so we have left that disabled to stay compatible with legacy XML servers. 12 JSON for S2S isn't supported due to the lack of a discovery mechanism, so we have left that disabled to stay compatible with legacy XML servers.
13 13
14 = Configuration = 14 = Configuration =
15 Just add `"json_streams"` in your config's global `modules_enabled` list, for example: 15 Just add `"json_streams"` in your config's global `modules_enabled` list, for example:
20 "json_streams"; 20 "json_streams";
21 } 21 }
22 }}} 22 }}}
23 23
24 = Strophe.js plugin = 24 = Strophe.js plugin =
25 We also developed a [http://prosody-modules.googlecode.com/hg/mod_json_streams/strophe.jsonstreams.js JSON streams plugin] for popular [http://code.stanziq.com/strophe strophe.js] library. 25 We also developed a [http://prosody-modules.googlecode.com/hg/mod_json_streams/strophe.jsonstreams.js JSON streams plugin] for the popular [http://code.stanziq.com/strophe strophe.js] library.
26 26
27 Just include it like this after including the strophe library, and your strophe-based client will be speaking JSON: 27 Just include it like this after including the strophe library, and your strophe-based client will be speaking JSON:
28 {{{ 28 {{{
29 <script type="text/javascript" src="strophe.jsonstreams.js"></script> 29 <script type="text/javascript" src="strophe.jsonstreams.js"></script>
30 }}} 30 }}}
33 = Compatibility = 33 = Compatibility =
34 ||0.8||Works|| 34 ||0.8||Works||
35 ||trunk||Works|| 35 ||trunk||Works||
36 36
37 = Quirks = 37 = Quirks =
38 * This plugin does not currently work with Prosody's [http://prosody.im/doc/port_multiplexing port multiplexing] feature. 38 * This plugin does not currently work with Prosody's [http://prosody.im/doc/port_multiplexing port multiplexing] feature