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