# HG changeset patch # User Waqas Hussain # Date 1301706902 -18000 # Node ID 8426db59abf0877963fecf0641e568b8ffe8c718 # Parent 01fb5e97f22b14de6b8475aab717cbe8e02e0f6a mod_json_streams: Grammar. diff -r 01fb5e97f22b -r 8426db59abf0 mod_json_streams.wiki --- a/mod_json_streams.wiki Sat Apr 02 05:13:54 2011 +0500 +++ b/mod_json_streams.wiki Sat Apr 02 06:15:02 2011 +0500 @@ -5,9 +5,9 @@ This plugin encodes XMPP as JSON. This is an implementation of [http://xmpp.org/extensions/xep-0295.html XEP-0295: JSON Encodings for XMPP]. -Simply loading this modules makes Prosody accept JSON for C2S streams (legacy XML clients are still supported). +Simply loading this module makes Prosody accept JSON on C2S streams (legacy XML clients are still supported). -For BOSH, it requires mod_bosh be loaded, and JSON should be directed to the `/jsonstreams` HTTP path. +For BOSH, it requires mod_bosh be loaded, and JSON should be directed at the `/jsonstreams` HTTP path. 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. @@ -22,7 +22,7 @@ }}} = Strophe.js plugin = -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. +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. Just include it like this after including the strophe library, and your strophe-based client will be speaking JSON: {{{ @@ -35,4 +35,4 @@ ||trunk||Works|| = Quirks = - * This plugin does not currently work with Prosody's [http://prosody.im/doc/port_multiplexing port multiplexing] feature. + * This plugin does not currently work with Prosody's [http://prosody.im/doc/port_multiplexing port multiplexing] feature