# HG changeset patch # User Matthew Wild # Date 1451898870 0 # Node ID 9ca2b720ad433ece3f61c4d75f612fe761023f55 # Parent 49e2456bf2cef770f206867d093d28533e8c5cfd mod_bosh: Fire event when BOSH session is created diff -r 49e2456bf2ce -r 9ca2b720ad43 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Sun Jan 03 17:48:36 2016 +0100 +++ b/plugins/mod_bosh.lua Mon Jan 04 09:14:30 2016 +0000 @@ -272,6 +272,8 @@ session.log("debug", "BOSH session created for request from %s", session.ip); log("info", "New BOSH session, assigned it sid '%s'", sid); + hosts[session.host].events.fire_event("bosh-session", { session = session, request = request }); + -- Send creation response local creating_session = true;