|
@@ -75,7 +75,15 @@ function connect(id, password, roomName) {
|
75
|
75
|
const connectionConfig = Object.assign({}, config);
|
76
|
76
|
const { issuer, jwt } = APP.store.getState()['features/base/jwt'];
|
77
|
77
|
|
78
|
|
- connectionConfig.bosh += `?room=${roomName}`;
|
|
78
|
+ // Use Websocket URL for the web app if configured. Note that there is no 'isWeb' check, because there's assumption
|
|
79
|
+ // that this code executes only on web browsers/electron. This needs to be changed when mobile and web are unified.
|
|
80
|
+ let serviceUrl = connectionConfig.websocket || connectionConfig.bosh;
|
|
81
|
+
|
|
82
|
+ serviceUrl += `?room=${roomName}`;
|
|
83
|
+
|
|
84
|
+ // FIXME Remove deprecated 'bosh' option assignment at some point(LJM will be accepting only 'serviceUrl' option
|
|
85
|
+ // in future). It's included for the time being for Jitsi Meet and lib-jitsi-meet versions interoperability.
|
|
86
|
+ connectionConfig.serviceUrl = connectionConfig.bosh = serviceUrl;
|
79
|
87
|
|
80
|
88
|
const connection
|
81
|
89
|
= new JitsiMeetJS.JitsiConnection(
|