"Fossies" - the Fresh Open Source Software Archive 
Member "jitsi-meet-7309/resources/prosody-plugins/mod_websocket_session_event.patch" (31 May 2023, 806 Bytes) of package /linux/misc/jitsi-meet-7309.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 # HG changeset patch
2 # User Matthew Wild <mwild1@gmail.com>
3 # Date 1579882890 0
4 # Node ID 37936c72846d77bb4b23c4987ccc9dc8805fe67c
5 # Parent b9a054ad38e72c0480534c06a7b4397c048d122a
6 mod_websocket: Fire event on session creation (thanks Aaron van Meerten)
7
8 diff -r b9a054ad38e7 -r 37936c72846d plugins/mod_websocket.lua
9 --- a/plugins/mod_websocket.lua Thu Jan 23 21:59:13 2020 +0000
10 +++ b/plugins/mod_websocket.lua Fri Jan 24 16:21:30 2020 +0000
11 @@ -305,6 +305,8 @@
12 response.headers.sec_webSocket_accept = base64(sha1(request.headers.sec_websocket_key .. "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"));
13 response.headers.sec_webSocket_protocol = "xmpp";
14
15 + module:fire_event("websocket-session", { session = session, request = request });
16 +
17 session.log("debug", "Sending WebSocket handshake");
18
19 return "";