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
commit3937d883586e89b5dd6c0da332bf290158a6ecb1 (patch)
tree7addd1b240a5d363fe7c767b7f484ad3b948c9d9
parentdc21fd08f46d714de6f8b8318b3c3ee212e97e2f (diff)
downloadprosody-3937d883586e89b5dd6c0da332bf290158a6ecb1.tar.gz
prosody-3937d883586e89b5dd6c0da332bf290158a6ecb1.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;