mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_websocket: Fire event on session creation (thanks Aaron van Meerten)
This commit is contained in:
parent
5ac8804435
commit
634408ca29
1 changed files with 2 additions and 0 deletions
|
@ -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 "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue