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 5ac8804435
commit 634408ca29

View file

@ -292,6 +292,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 "";