view @ 174:c87bea8ab41a

mod_json_streams: Some tweaks and fixes.
author Waqas Hussain <>
date Sat, 02 Apr 2011 05:01:01 +0500
parents e613d82d097a
children 01fb5e97f22b
line wrap: on
line source

#summary JSON Encodings for XMPP
#labels Stage-Beta

= Introduction =

This plugin encodes XMPP as JSON. This is an implementation of [ XEP-0295: JSON Encodings for XMPP].

Simply loading this modules makes Prosody accept JSON for 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.

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.

= Configuration =
Just add `"json_streams"` in your config's global `modules_enabled` list, for example:

modules_enabled = {

= Compatibility =

= Quirks =
 * This plugin does not currently work with Prosody's [ port multiplexing] feature.