fix(load-test): Fixes keepalive url when using load-test.

This commit is contained in:
damencho 2021-02-12 12:14:32 -06:00 committed by Дамян Минков
parent 6740b0861e
commit 684d121159
1 changed files with 3 additions and 0 deletions

View File

@ -250,6 +250,9 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
JitsiMeetJS.init(config);
config.serviceUrl = config.bosh = `${config.websocket || config.bosh}?room=${roomName.toLowerCase()}`;
if (config.websocketKeepAliveUrl) {
config.websocketKeepAliveUrl += `?room=${roomName.toLowerCase()}`;
}
connection = new JitsiMeetJS.JitsiConnection(null, null, config);
connection.addEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED, onConnectionSuccess);