Software /
code /
prosody
Diff
plugins/mod_websocket.lua @ 7716:779a9ef6b4fd
mod_websocket: Set FIN flag on ping frames (fixes #773)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 04 Nov 2016 13:28:10 +0100 |
parent | 7340:7dea28dafc49 |
child | 7760:801d4c8e0f58 |
line wrap: on
line diff
--- a/plugins/mod_websocket.lua Thu Nov 03 23:56:17 2016 +0100 +++ b/plugins/mod_websocket.lua Fri Nov 04 13:28:10 2016 +0100 @@ -293,7 +293,7 @@ local function keepalive(event) local session = event.session; if session.open_stream == session_open_stream then - return session.conn:write(build_frame({ opcode = 0x9, })); + return session.conn:write(build_frame({ opcode = 0x9, FIN = true })); end end