Changeset

13720:c3c4281c1339 13.0

mod_bosh, mod_websocket: Add soft dependency on mod_http_altconnect
author Matthew Wild <mwild1@gmail.com>
date Sun, 16 Feb 2025 13:32:59 +0000
parents 13719:4309c934e813
children 13721:8170dd8f370c 13722:8bf5d07e3796
files plugins/mod_bosh.lua plugins/mod_websocket.lua
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Sun Feb 16 13:29:07 2025 +0000
+++ b/plugins/mod_bosh.lua	Sun Feb 16 13:32:59 2025 +0000
@@ -557,6 +557,8 @@
 			["POST /"] = handle_POST;
 		};
 	});
+
+	module:depends("http_altconnect", true);
 end
 
 if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then
--- a/plugins/mod_websocket.lua	Sun Feb 16 13:29:07 2025 +0000
+++ b/plugins/mod_websocket.lua	Sun Feb 16 13:32:59 2025 +0000
@@ -367,6 +367,8 @@
 		};
 	});
 
+	module:depends("http_altconnect", true);
+
 	module:hook("c2s-read-timeout", keepalive, -0.9);
 end