# HG changeset patch # User Kim Alvefur # Date 1592486674 -7200 # Node ID 36b6e3e3f9e2eeeb5d1ce5ca4db481b05bdb2953 # Parent d518f97dad6f15a2897dac0df60e52a9d104e6ec 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. diff -r d518f97dad6f -r 36b6e3e3f9e2 mod_conversejs/mod_conversejs.lua --- 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;