diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-01-04 09:14:30 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-01-04 09:14:30 +0000 |
commit | 768cef78e233f2f613799dba6b525bdf8f7ca75c (patch) | |
tree | 7addd1b240a5d363fe7c767b7f484ad3b948c9d9 /plugins/mod_bosh.lua | |
parent | d0bf02ff6639f9cd0cea23848e74361bad19640d (diff) | |
download | prosody-768cef78e233f2f613799dba6b525bdf8f7ca75c.tar.gz prosody-768cef78e233f2f613799dba6b525bdf8f7ca75c.zip |
mod_bosh: Fire event when BOSH session is created
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
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; |