Passes all configs to the connection.

This commit is contained in:
damencho 2016-01-15 13:50:16 -06:00
parent aed2d97c10
commit 7e35794e47
1 changed files with 1 additions and 5 deletions

View File

@ -6,11 +6,7 @@ const ConnectionEvents = JitsiMeetJS.events.connection;
const ConnectionErrors = JitsiMeetJS.errors.connection;
function connect(id, password) {
let connection = new JitsiMeetJS.JitsiConnection(null, null, {
hosts: config.hosts,
bosh: config.bosh,
clientNode: config.clientNode
});
let connection = new JitsiMeetJS.JitsiConnection(null, null, config);
return new Promise(function (resolve, reject) {
connection.addEventListener(