Mercurial > prosody-wiki
diff mod_json_streams.wiki @ 175:01fb5e97f22b
mod_json_streams: Added section for strophe.js plugin.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 02 Apr 2011 05:13:54 +0500 |
parents | c87bea8ab41a |
children | 8426db59abf0 |
line wrap: on
line diff
--- 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: +{{{ +<script type="text/javascript" src="strophe.jsonstreams.js"></script> +}}} +Be sure to set the HTTP path to `/jsonstreams`. No other changes are required. + = Compatibility = ||0.8||Works|| ||trunk||Works||