From 768cef78e233f2f613799dba6b525bdf8f7ca75c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 4 Jan 2016 09:14:30 +0000 Subject: mod_bosh: Fire event when BOSH session is created --- plugins/mod_bosh.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 9e8354fe..fd33226c 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -272,6 +272,8 @@ function stream_callbacks.streamopened(context, attr) 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; -- cgit v1.2.3