feat(config.js): add 'websocket' config option

Config.js will allow to specify both BOSH and Websocket URLs. In such
case the web app will prefer Websocket over BOSH. The reason is that it
appears to be more stable and a bit fast on web, while on mobile
websocket is dropped fast(killed by the OS) on network changes.
This commit is contained in:
paweldomas
2020-01-24 15:21:10 -06:00
committed by Paweł Domas
parent 31d9fb12c8
commit b25db3ce2e
3 changed files with 14 additions and 2 deletions
@@ -312,7 +312,8 @@ function _constructOptions(state) {
room && (bosh += `?room=${getBackendSafeRoomName(room)}`);
options.bosh = bosh;
// FIXME Remove deprecated 'bosh' option assignment at some point.
options.serviceUrl = options.bosh = bosh;
}
return options;