aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_websocket.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-03-23 14:31:35 +0100
committerKim Alvefur <zash@zash.se>2016-03-23 14:31:35 +0100
commitb69db0deff59327a43d498006ca48feca2abd712 (patch)
treeb4117f7349f6e491fe2adbee2094ede18b9dad95 /plugins/mod_websocket.lua
parent8005cf6813739ada38ad073f7a768d1667bdb8c5 (diff)
downloadprosody-b69db0deff59327a43d498006ca48feca2abd712.tar.gz
prosody-b69db0deff59327a43d498006ca48feca2abd712.zip
mod_websocket: Remove warning about unsolicited pong frames "MAY be sent unsolicited" per RFC 6455 (thanks mt)
Diffstat (limited to 'plugins/mod_websocket.lua')
-rw-r--r--plugins/mod_websocket.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index 274e587a..ecbfabdd 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -226,8 +226,7 @@ function handle_request(event)
frame.opcode = 0xA;
conn:write(build_frame(frame));
return "";
- elseif opcode == 0xA then -- Pong frame
- module:log("warn", "Received unexpected pong frame: " .. tostring(frame.data));
+ elseif opcode == 0xA then -- Pong frame, MAY be sent unsolicited, eg as keepalive
return "";
else
log("warn", "Received frame with unsupported opcode %i", opcode);