Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 7660:d2825ddaac19
Merge 0.10->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 07 Sep 2016 19:33:14 +0100 |
parent | 7656:296543556065 |
parent | 7659:449de852cf38 |
child | 8101:3e25d96571d1 |
comparison
equal
deleted
inserted
replaced
7658:e14a124c4d73 | 7660:d2825ddaac19 |
---|---|
364 body_attr.ver = '1.6'; | 364 body_attr.ver = '1.6'; |
365 body_attr.from = session.host; | 365 body_attr.from = session.host; |
366 body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh"; | 366 body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh"; |
367 body_attr["xmpp:version"] = "1.0"; | 367 body_attr["xmpp:version"] = "1.0"; |
368 end | 368 end |
369 oldest_request:send(st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>"); | 369 session.bosh_last_response = st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>"; |
370 oldest_request:send(session.bosh_last_response); | |
370 session.send_buffer = {}; | 371 session.send_buffer = {}; |
371 end | 372 end |
372 return true; | 373 return true; |
373 end | 374 end |
374 request.sid = sid; | 375 request.sid = sid; |