Mercurial > prosody-wiki
comparison 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 |
comparison
equal
deleted
inserted
replaced
174:c87bea8ab41a | 175:01fb5e97f22b |
---|---|
19 ... | 19 ... |
20 "json_streams"; | 20 "json_streams"; |
21 } | 21 } |
22 }}} | 22 }}} |
23 | 23 |
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. | |
26 | |
27 Just include it like this after including the strophe library, and your strophe-based client will be speaking JSON: | |
28 {{{ | |
29 <script type="text/javascript" src="strophe.jsonstreams.js"></script> | |
30 }}} | |
31 Be sure to set the HTTP path to `/jsonstreams`. No other changes are required. | |
32 | |
24 = Compatibility = | 33 = Compatibility = |
25 ||0.8||Works|| | 34 ||0.8||Works|| |
26 ||trunk||Works|| | 35 ||trunk||Works|| |
27 | 36 |
28 = Quirks = | 37 = Quirks = |