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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ucservice",
3
3
  "private": false,
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
package/src/lib/cometd.js CHANGED
@@ -877,9 +877,7 @@
877
877
  }
878
878
 
879
879
  // Mangle the URL, changing the scheme from 'http' to 'ws'.
880
- // var url = _cometd.getURL().replace(/^http/, 'ws');
881
- //因证书问题,暂时将https和http都改成ws
882
- var url = _cometd.getURL().replace(/^https/, 'ws').replace(/^http/, 'ws');
880
+ var url = _cometd.getURL().replace(/^http/, 'ws');
883
881
  this._debug('Transport', this.getType(), 'connecting to URL', url);
884
882
 
885
883
  try {
@@ -2352,8 +2352,7 @@
2352
2352
  }
2353
2353
 
2354
2354
  let janusUrl = me._opts.conf.janusUrl;
2355
- //没有证书,项目需要不使用wss
2356
- // checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
2355
+ checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
2357
2356
  me._opts.janus = new Janus({
2358
2357
  // server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
2359
2358
  //使用项目必须定义window.janusHttpsHost来适应https