equal
deleted
inserted
replaced
273 attr.xmlns = attr.xmlns or xmlns_client; |
273 attr.xmlns = attr.xmlns or xmlns_client; |
274 if stanza.name:find("^stream:") then |
274 if stanza.name:find("^stream:") then |
275 attr["xmlns:stream"] = attr["xmlns:stream"] or xmlns_streams; |
275 attr["xmlns:stream"] = attr["xmlns:stream"] or xmlns_streams; |
276 end |
276 end |
277 return stanza; |
277 return stanza; |
278 end); |
278 end, -1000); |
279 |
279 |
280 add_filter(session, "bytes/out", function(data) |
280 add_filter(session, "bytes/out", function(data) |
281 return build_frame({ FIN = true, opcode = 0x01, data = tostring(data)}); |
281 return build_frame({ FIN = true, opcode = 0x01, data = tostring(data)}); |
282 end); |
282 end); |
283 |
283 |