diff options
author | Kim Alvefur <zash@zash.se> | 2016-12-04 11:52:22 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-12-04 11:52:22 +0100 |
commit | 499ca748ea137da5bb722f05b99c003a91264a73 (patch) | |
tree | 706dae764c7d745bc38e6d0eccabaa035835f706 | |
parent | 8c9c9d193d9db69eb5138e820d639238401da342 (diff) | |
download | prosody-499ca748ea137da5bb722f05b99c003a91264a73.tar.gz prosody-499ca748ea137da5bb722f05b99c003a91264a73.zip |
mod_websocket: Add some debug messages
-rw-r--r-- | plugins/mod_websocket.lua | 3 |
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 |