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 | f758fdb4d600d74251e6c10cff8116c40fce6771 (patch) | |
tree | 706dae764c7d745bc38e6d0eccabaa035835f706 /plugins/mod_websocket.lua | |
parent | bc5151daffe857165d599fb38aa4c393df62c342 (diff) | |
download | prosody-f758fdb4d600d74251e6c10cff8116c40fce6771.tar.gz prosody-f758fdb4d600d74251e6c10cff8116c40fce6771.zip |
mod_websocket: Add some debug messages
Diffstat (limited to 'plugins/mod_websocket.lua')
-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 |