(but before you get too excited, no resource binding yet. And yes, there are still plenty of rough edges to the code...)
((eg. must move <stream:features> out of xmlhandlers.lua o_O ))
This commit is contained in:
Matthew Wild 2008-10-02 01:08:58 +01:00
parent f1cc4eb60f
commit 6db3d039b3
9 changed files with 194 additions and 45 deletions

16
net/connhandlers.lua Normal file
View file

@ -0,0 +1,16 @@
local lxp = require "lxp"
local init_xmlhandlers = require "core.xmlhandlers"
module "connhandlers"
function new(name, session)
if name == "xmpp-client" then
local parser = lxp.new(init_xmlhandlers(session), ":");
local parse = parser.parse;
return { data = function (self, data) return parse(parser, data); end, parser = parser }
end
end
return _M;