initial session for bosh and websockets (#5006)
* hook on websocket events * initial session for bosh and websockets
This commit is contained in:
parent
7ea7afebfb
commit
5d86d202bd
|
@ -17,8 +17,8 @@ local provider = {};
|
|||
|
||||
local host = module.host;
|
||||
|
||||
-- Extract 'token' param from BOSH URL when session is created
|
||||
module:hook("bosh-session", function(event)
|
||||
-- Extract 'token' param from URL when session is created
|
||||
function init_session(event)
|
||||
local session, request = event.session, event.request;
|
||||
local query = request.url.query;
|
||||
|
||||
|
@ -30,7 +30,10 @@ module:hook("bosh-session", function(event)
|
|||
session.jitsi_bosh_query_room = params.room;
|
||||
session.jitsi_bosh_query_prefix = params.prefix or "";
|
||||
end
|
||||
end);
|
||||
end
|
||||
|
||||
module:hook("bosh-session", init_session);
|
||||
module:hook("websocket-session", init_session);
|
||||
|
||||
function provider.test_password(username, password)
|
||||
return nil, "Password based auth not supported";
|
||||
|
|
Loading…
Reference in New Issue