mod_websocket: Fire event on session creation (thanks Aaron van Meerten)

This commit is contained in:
Matthew Wild 2020-01-24 16:21:30 +00:00
parent 75a1867ca5
commit 2418c3fe43

View file

@ -305,6 +305,8 @@ function handle_request(event)
response.headers.sec_webSocket_accept = base64(sha1(request.headers.sec_websocket_key .. "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"));
response.headers.sec_webSocket_protocol = "xmpp";
module:fire_event("websocket-session", { session = session, request = request });
session.log("debug", "Sending WebSocket handshake");
return "";