# HG changeset patch # User Waqas Hussain # Date 1301703234 -18000 # Node ID 01fb5e97f22b14de6b8475aab717cbe8e02e0f6a # Parent c87bea8ab41ad78efbe7e254aa6e62387c0b5113 mod_json_streams: Added section for strophe.js plugin. diff -r c87bea8ab41a -r 01fb5e97f22b mod_json_streams.wiki --- a/mod_json_streams.wiki Sat Apr 02 05:01:01 2011 +0500 +++ b/mod_json_streams.wiki Sat Apr 02 05:13:54 2011 +0500 @@ -21,6 +21,15 @@ } }}} += 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. + +Just include it like this after including the strophe library, and your strophe-based client will be speaking JSON: +{{{ + +}}} +Be sure to set the HTTP path to `/jsonstreams`. No other changes are required. + = Compatibility = ||0.8||Works|| ||trunk||Works||