Changeset

7047:9ca2b720ad43

mod_bosh: Fire event when BOSH session is created
author Matthew Wild <mwild1@gmail.com>
date Mon, 04 Jan 2016 09:14:30 +0000
parents 7045:49e2456bf2ce
children 7048:b58fd349ddfe 7049:0eee56075901
files plugins/mod_bosh.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;