Changeset

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
parents 4046:d518f97dad6f
children 4048:64b7daa6c42c
files mod_conversejs/mod_conversejs.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;