ue-softphone-sdk 2.0.3 → 2.0.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ue-softphone-sdk",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "ue-softphone-sdk",
5
5
  "main": "dist/ue-softphone-sdk.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: cuixuecheng
3
3
  * @Date: 2023-02-21 18:40:21
4
4
  * @LastEditors: 杨钰宸
5
- * @LastEditTime: 2023-08-01 16:50:11
5
+ * @LastEditTime: 2023-08-03 10:01:36
6
6
  * @Description:
7
7
  */
8
8
 
@@ -396,6 +396,7 @@ export default class ueSoftphone {
396
396
  loginInfo.data.pushServer,
397
397
  loginInfo.data.agent
398
398
  );
399
+ debugger;
399
400
  if (loginType === "WEBRTC") {
400
401
  this.getWebrtcInfo(server, options);
401
402
  }
@@ -2836,7 +2837,7 @@ class ueWebsocket {
2836
2837
  private ws: any;
2837
2838
  constructor(server: string, proto: any) {
2838
2839
  //@ts-ignore
2839
- this.ws = io.connect(server, proto);
2840
+ this.ws = io.connect(`wss://${server}`, proto);
2840
2841
  }
2841
2842
  public on(type: string, callback: Function) {
2842
2843
  if (type === "connect") {