Mercurial > prosody-hg
comparison plugins/mod_bosh.lua @ 2373:13090fc6ad90
mod_bosh: Update for new connection API
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 17 Dec 2009 20:28:32 +0000 |
| parents | 5a00668ba0ab |
| children | 8098310d0dfd |
comparison
equal
deleted
inserted
replaced
| 2372:bb88b76c21d0 | 2373:13090fc6ad90 |
|---|---|
| 252 local session = sessions[request.sid]; | 252 local session = sessions[request.sid]; |
| 253 if session then | 253 if session then |
| 254 if stanza.attr.xmlns == xmlns_bosh then | 254 if stanza.attr.xmlns == xmlns_bosh then |
| 255 stanza.attr.xmlns = "jabber:client"; | 255 stanza.attr.xmlns = "jabber:client"; |
| 256 end | 256 end |
| 257 session.ip = request.handler.ip(); | 257 session.ip = request.handler:ip(); |
| 258 core_process_stanza(session, stanza); | 258 core_process_stanza(session, stanza); |
| 259 end | 259 end |
| 260 end | 260 end |
| 261 | 261 |
| 262 local dead_sessions = {}; | 262 local dead_sessions = {}; |
