aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_websocket.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-04 11:52:22 +0100
committerKim Alvefur <zash@zash.se>2016-12-04 11:52:22 +0100
commit499ca748ea137da5bb722f05b99c003a91264a73 (patch)
tree706dae764c7d745bc38e6d0eccabaa035835f706 /plugins/mod_websocket.lua
parent8c9c9d193d9db69eb5138e820d639238401da342 (diff)
downloadprosody-499ca748ea137da5bb722f05b99c003a91264a73.tar.gz
prosody-499ca748ea137da5bb722f05b99c003a91264a73.zip
mod_websocket: Add some debug messages
Diffstat (limited to 'plugins/mod_websocket.lua')
-rw-r--r--plugins/mod_websocket.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index ea736800..26f4c124 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -148,6 +148,7 @@ function handle_request(event)
end);
if not wants_xmpp then
+ module:log("debug", "Client didn't want to talk XMPP, list of protocols was %s", request.headers.sec_websocket_protocol or "(empty)");
return 501;
end
@@ -287,6 +288,8 @@ function handle_request(event)
response.headers.sec_webSocket_protocol = "xmpp";
response.headers.access_control_allow_origin = cross_domain;
+ session.log("debug", "Sending WebSocket handshake");
+
return "";
end