Software / code / prosody
Comparison
plugins/mod_websocket.lua @ 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 |
| parent | 13213:50324f66ca2a |
| child | 13749:08c2b7accd94 |
comparison
equal
deleted
inserted
replaced
| 13719:4309c934e813 | 13720:c3c4281c1339 |
|---|---|
| 365 ["GET"] = handle_request; | 365 ["GET"] = handle_request; |
| 366 ["GET /"] = handle_request; | 366 ["GET /"] = handle_request; |
| 367 }; | 367 }; |
| 368 }); | 368 }); |
| 369 | 369 |
| 370 module:depends("http_altconnect", true); | |
| 371 | |
| 370 module:hook("c2s-read-timeout", keepalive, -0.9); | 372 module:hook("c2s-read-timeout", keepalive, -0.9); |
| 371 end | 373 end |
| 372 | 374 |
| 373 if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then | 375 if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then |
| 374 module:add_host(); | 376 module:add_host(); |