diff --git a/src/output/flash-news/impl/Jin10FlushService.ts b/src/output/flash-news/impl/Jin10FlushService.ts index 8b136ccf..8993fc98 100644 --- a/src/output/flash-news/impl/Jin10FlushService.ts +++ b/src/output/flash-news/impl/Jin10FlushService.ts @@ -27,7 +27,7 @@ export default class Jin10FlushService extends NewsFlushServiceAbstractClass { this.ws.close(); this.ws = void 0; } - const ws = new WebSocket('wss://wss-flash-1.jin10.com/'); + const ws = new WebSocket('wss://wss-flash-2.jin10.com/'); this.ws = ws; ws.binaryType = 'arraybuffer'; ws.addEventListener('message', (msg: { data: Iterable }) => { @@ -44,14 +44,14 @@ export default class Jin10FlushService extends NewsFlushServiceAbstractClass { ws.addEventListener('error', (err: any) => { globalState.telemetry.sendEvent('error:jin10Service', { error: err }); - console.log('金十快讯 ws 错误:', err); + console.log("🚀 ~ 金十快讯 ws 错误:Jin10FlushService ~ ws.addEventListener ~ err:", err) }); ws.addEventListener('close', () => { console.log('金十快讯 ws 关闭'); if (!this.isDone) { this.ws = void 0; - this.init(); + setTimeout(() => this.init(), 10000); } }); } @@ -61,7 +61,7 @@ export default class Jin10FlushService extends NewsFlushServiceAbstractClass { this.heartbeatTimer && clearInterval(this.heartbeatTimer); this.ws?.close(); } - pause() {} + pause() { } private sendHeartbeat() { this.heartbeatTimer = setInterval(() => { if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {