Software /
code /
prosody
Diff
plugins/mod_websocket.lua @ 7314:e327e5b592f5
mod_websocket: Remove warning about unsolicited pong frames "MAY be sent unsolicited" per RFC 6455 (thanks mt)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 23 Mar 2016 14:31:35 +0100 |
parent | 7294:5f4d0753c818 |
child | 7315:4fd984d1e445 |
line wrap: on
line diff
--- a/plugins/mod_websocket.lua Wed Mar 23 12:17:28 2016 +0000 +++ b/plugins/mod_websocket.lua Wed Mar 23 14:31:35 2016 +0100 @@ -226,8 +226,7 @@ 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);