mod_conversejs: Disable automatic BOSH/WS endpoint discovery
authorKim Alvefur <zash@zash.se>
Thu, 18 Jun 2020 15:24:34 +0200
changeset 4051 36b6e3e3f9e2
parent 4050 d518f97dad6f
child 4052 64b7daa6c42c
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.
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;