Software /
code /
prosody
Diff
plugins/mod_websocket.lua @ 7760:801d4c8e0f58
mod_websocket: Add some debug messages
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 04 Dec 2016 11:52:22 +0100 |
parent | 7716:779a9ef6b4fd |
child | 7761:e0e1f6d6fb4f |
line wrap: on
line diff
--- a/plugins/mod_websocket.lua Sun Dec 04 11:58:16 2016 +0100 +++ b/plugins/mod_websocket.lua Sun Dec 04 11:52:22 2016 +0100 @@ -148,6 +148,7 @@ 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 @@ response.headers.sec_webSocket_protocol = "xmpp"; response.headers.access_control_allow_origin = cross_domain; + session.log("debug", "Sending WebSocket handshake"); + return ""; end