Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
4046:d518f97dad6f | 4047:36b6e3e3f9e2 |
---|---|
65 local allow_registration = module:get_option_boolean("allow_registration", false); | 65 local allow_registration = module:get_option_boolean("allow_registration", false); |
66 local converse_options = { | 66 local converse_options = { |
67 bosh_service_url = has_bosh and module:http_url("bosh","/http-bind") or nil; | 67 bosh_service_url = has_bosh and module:http_url("bosh","/http-bind") or nil; |
68 websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil; | 68 websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil; |
69 authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login"; | 69 authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login"; |
70 discover_connection_methods = false; | |
70 jid = module.host; | 71 jid = module.host; |
71 default_domain = module.host; | 72 default_domain = module.host; |
72 domain_placeholder = module.host; | 73 domain_placeholder = module.host; |
73 allow_registration = allow_registration; | 74 allow_registration = allow_registration; |
74 registration_domain = allow_registration and module.host or nil; | 75 registration_domain = allow_registration and module.host or nil; |