Comparison

plugins/mod_websocket.lua @ 9415:02155a10c5e9

mod_websocket: Silence the one warning instead of ignoring the entire file
author Kim Alvefur <zash@zash.se>
date Sun, 30 Sep 2018 17:55:13 +0200
parent 9378:a6f54df39624
child 9795:02735bc82126
child 9800:5c5117d41133
comparison
equal deleted inserted replaced
9414:a48579a7b709 9415:02155a10c5e9
93 end 93 end
94 94
95 session.send(st.stanza("close", { xmlns = xmlns_framing })); 95 session.send(st.stanza("close", { xmlns = xmlns_framing }));
96 function session.send() return false; end 96 function session.send() return false; end
97 97
98 -- luacheck: ignore 422/reason
99 -- FIXME reason should be handled in common place
98 local reason = (reason and (reason.name or reason.text or reason.condition)) or reason; 100 local reason = (reason and (reason.name or reason.text or reason.condition)) or reason;
99 session.log("debug", "c2s stream for %s closed: %s", session.full_jid or ("<"..session.ip..">"), reason or "session closed"); 101 session.log("debug", "c2s stream for %s closed: %s", session.full_jid or ("<"..session.ip..">"), reason or "session closed");
100 102
101 -- Authenticated incoming stream may still be sending us stanzas, so wait for </stream:stream> from remote 103 -- Authenticated incoming stream may still be sending us stanzas, so wait for </stream:stream> from remote
102 local conn = session.conn; 104 local conn = session.conn;