ucservice 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14239,9 +14239,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14239
14239
  return;
14240
14240
  }
14241
14241
 
14242
- let janusUrl = me._opts.conf.janusUrl; //没有证书,项目需要不使用wss
14243
- // checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
14244
-
14242
+ let janusUrl = me._opts.conf.janusUrl;
14243
+ checkIsHttps() && (janusUrl = janusUrl.replace('ws:', 'wss:'));
14245
14244
  me._opts.janus = new Janus({
14246
14245
  // server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
14247
14246
  //使用项目必须定义window.janusHttpsHost来适应https
@@ -16042,11 +16041,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
16042
16041
  if (_connecting) {
16043
16042
  return;
16044
16043
  } // Mangle the URL, changing the scheme from 'http' to 'ws'.
16045
- // var url = _cometd.getURL().replace(/^http/, 'ws');
16046
- //因证书问题,暂时将https和http都改成ws
16047
16044
 
16048
16045
 
16049
- var url = _cometd.getURL().replace(/^https/, 'ws').replace(/^http/, 'ws');
16046
+ var url = _cometd.getURL().replace(/^http/, 'ws');
16050
16047
 
16051
16048
  this._debug('Transport', this.getType(), 'connecting to URL', url);
16052
16049
 
Binary file