Comparison

plugins/mod_bosh.lua @ 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
parent 6528:f0687c313cf1
child 7048:b58fd349ddfe
child 7283:32754b15b28a
comparison
equal deleted inserted replaced
7045:49e2456bf2ce 7047:9ca2b720ad43
269 269
270 local filter = initialize_filters(session); 270 local filter = initialize_filters(session);
271 271
272 session.log("debug", "BOSH session created for request from %s", session.ip); 272 session.log("debug", "BOSH session created for request from %s", session.ip);
273 log("info", "New BOSH session, assigned it sid '%s'", sid); 273 log("info", "New BOSH session, assigned it sid '%s'", sid);
274
275 hosts[session.host].events.fire_event("bosh-session", { session = session, request = request });
274 276
275 -- Send creation response 277 -- Send creation response
276 local creating_session = true; 278 local creating_session = true;
277 279
278 local r = session.requests; 280 local r = session.requests;