byt-lingxiao-ai 0.3.14 → 0.3.15
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.
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
data() {
|
|
5
5
|
return {
|
|
6
6
|
ws: null,
|
|
7
|
-
wsUrl: WS_URL,
|
|
8
7
|
isConnected: false,
|
|
9
8
|
reconnectCount: 0, // 重连尝试次数
|
|
10
9
|
maxReconnectAttempts: 3 // 最大重连尝试次数
|
|
@@ -15,7 +14,7 @@ export default {
|
|
|
15
14
|
try {
|
|
16
15
|
// this.ws = new WebSocket('ws://10.2.233.41:9999');
|
|
17
16
|
// 测试
|
|
18
|
-
this.ws = new WebSocket(
|
|
17
|
+
this.ws = new WebSocket(WS_URL);
|
|
19
18
|
this.ws.binaryType = 'arraybuffer';
|
|
20
19
|
|
|
21
20
|
this.ws.onopen = async () => {
|
package/dist/index.common.js
CHANGED
|
@@ -31305,7 +31305,6 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
|
|
|
31305
31305
|
data() {
|
|
31306
31306
|
return {
|
|
31307
31307
|
ws: null,
|
|
31308
|
-
wsUrl: WS_URL,
|
|
31309
31308
|
isConnected: false,
|
|
31310
31309
|
reconnectCount: 0,
|
|
31311
31310
|
// 重连尝试次数
|
|
@@ -31317,7 +31316,7 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
|
|
|
31317
31316
|
try {
|
|
31318
31317
|
// this.ws = new WebSocket('ws://10.2.233.41:9999');
|
|
31319
31318
|
// 测试
|
|
31320
|
-
this.ws = new WebSocket(
|
|
31319
|
+
this.ws = new WebSocket(WS_URL);
|
|
31321
31320
|
this.ws.binaryType = 'arraybuffer';
|
|
31322
31321
|
this.ws.onopen = async () => {
|
|
31323
31322
|
console.log('WebSocket 连接成功');
|