Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 8745:e098c9b25014
mod_bosh: Whitespace
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 10 Apr 2018 20:29:46 +0100 |
parent | 8744:0f4a4d8ac3dd |
child | 8746:df1ca586c68d |
comparison
equal
deleted
inserted
replaced
8744:0f4a4d8ac3dd | 8745:e098c9b25014 |
---|---|
206 end | 206 end |
207 | 207 |
208 local function bosh_reset_stream(session) session.notopen = true; end | 208 local function bosh_reset_stream(session) session.notopen = true; end |
209 | 209 |
210 local stream_xmlns_attr = { xmlns = "urn:ietf:params:xml:ns:xmpp-streams" }; | 210 local stream_xmlns_attr = { xmlns = "urn:ietf:params:xml:ns:xmpp-streams" }; |
211 | |
212 local function bosh_close_stream(session, reason) | 211 local function bosh_close_stream(session, reason) |
213 (session.log or log)("info", "BOSH client disconnected: %s", tostring((reason and reason.condition or reason) or "session close")); | 212 (session.log or log)("info", "BOSH client disconnected: %s", tostring((reason and reason.condition or reason) or "session close")); |
214 | 213 |
215 local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate", | 214 local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate", |
216 ["xmlns:stream"] = xmlns_streams }); | 215 ["xmlns:stream"] = xmlns_streams }); |