diff options
author | Matthew Wild <mwild1@gmail.com> | 2023-02-20 18:10:36 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2023-02-20 18:10:36 +0000 |
commit | a3d7c77607b2fa8dad5348660d853dc125399641 (patch) | |
tree | e80e6d6fb3981644bb40b1fb957616b6d34251a0 /plugins | |
parent | 6ce26b1c946a188e0c6f64f58aaddbd9b1efa172 (diff) | |
parent | 4dcabd36ceaacc5534e93523e65e654f7f864379 (diff) | |
download | prosody-a3d7c77607b2fa8dad5348660d853dc125399641.tar.gz prosody-a3d7c77607b2fa8dad5348660d853dc125399641.zip |
Merge 0.12->trunk
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_websocket.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua index bddcbb79..f0caa968 100644 --- a/plugins/mod_websocket.lua +++ b/plugins/mod_websocket.lua @@ -63,6 +63,9 @@ end 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(); |