Software /
code /
prosody-modules
Diff
mod_conversejs/mod_conversejs.lua @ 4047:36b6e3e3f9e2
mod_conversejs: Disable automatic BOSH/WS endpoint discovery
Converse.js 7.0 will enable this by default, but when using this module
the BOSH and WebSocket endpoints are provided in the generated HTML, so
automatic discovery is not needed and unlikely to work without an
additional module.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Jun 2020 15:24:34 +0200 |
parent | 3737:49e65a7e9415 |
child | 4147:3a06dea21ea1 |
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua Tue Jun 16 11:21:58 2020 +0200 +++ b/mod_conversejs/mod_conversejs.lua Thu Jun 18 15:24:34 2020 +0200 @@ -67,6 +67,7 @@ bosh_service_url = has_bosh and module:http_url("bosh","/http-bind") or nil; websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil; authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login"; + discover_connection_methods = false; jid = module.host; default_domain = module.host; domain_placeholder = module.host;