mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +03:00
Abstract connections with "connection listeners"
- Added connlistener for xmppclient - SASL/TLS now use a new session:reset_stream() method - main.lua on its way to being a bit neater
This commit is contained in:
parent
d510d54b28
commit
ee7b432ab1
8 changed files with 137 additions and 89 deletions
|
@ -36,8 +36,7 @@ add_handler("c2s_unauthed", "auth", xmlns_sasl,
|
|||
return;
|
||||
end
|
||||
session.sasl_handler = nil;
|
||||
session.connhandler = new_connhandler("xmpp-client", session);
|
||||
session.notopen = true;
|
||||
session:reset_stream();
|
||||
end,
|
||||
function (reason)
|
||||
-- onFail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue