aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-01-04 09:14:30 +0000
committerMatthew Wild <mwild1@gmail.com>2016-01-04 09:14:30 +0000
commit768cef78e233f2f613799dba6b525bdf8f7ca75c (patch)
tree7addd1b240a5d363fe7c767b7f484ad3b948c9d9
parentd0bf02ff6639f9cd0cea23848e74361bad19640d (diff)
downloadprosody-768cef78e233f2f613799dba6b525bdf8f7ca75c.tar.gz
prosody-768cef78e233f2f613799dba6b525bdf8f7ca75c.zip
mod_bosh: Fire event when BOSH session is created
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 2 insertions, 0 deletions
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;