From 573e9f27169c5791c81d0548149afca880395bda Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 16 Feb 2025 13:32:59 +0000 Subject: mod_bosh, mod_websocket: Add soft dependency on mod_http_altconnect --- plugins/mod_bosh.lua | 2 ++ plugins/mod_websocket.lua | 2 ++ 2 files changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 091a7d81..fc2c92ae 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -557,6 +557,8 @@ function module.add_host(module) ["POST /"] = handle_POST; }; }); + + module:depends("http_altconnect", true); end if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua index 7120f3cc..dfc1a215 100644 --- a/plugins/mod_websocket.lua +++ b/plugins/mod_websocket.lua @@ -367,6 +367,8 @@ function module.add_host(module) }; }); + module:depends("http_altconnect", true); + module:hook("c2s-read-timeout", keepalive, -0.9); end -- cgit v1.2.3