Software /
code /
prosody
Changeset
12895:4968dce04f4b
Merge 0.12->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 20 Feb 2023 18:10:36 +0000 |
parents | 12893:d7046ffc59f3 (current diff) 12894:0598d822614f (diff) |
children | 12897:220d8d108f16 |
files | |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_websocket.lua Mon Feb 20 18:16:12 2023 +0100 +++ b/plugins/mod_websocket.lua Mon Feb 20 18:10:36 2023 +0000 @@ -63,6 +63,9 @@ local function session_close(session, reason) local log = session.log or log; + local close_event_payload = { session = session, reason = reason }; + module:context(session.host):fire_event("pre-session-close", close_event_payload); + reason = close_event_payload.reason; if session.conn then if session.notopen then session:open_stream();