|
|
@@ -171,7 +171,7 @@ const pySocket = function () {
|
|
|
setTimeout(async () => {
|
|
|
try {
|
|
|
Log.info('开始重连...');
|
|
|
- await this.init(this.app);
|
|
|
+ await this.init();
|
|
|
Log.info('重连成功');
|
|
|
this.isReconnecting = false;
|
|
|
this.reconnectAttempts = 0;
|
|
|
@@ -219,6 +219,7 @@ const pySocket = function () {
|
|
|
if(!['blue_tooth','smart_shooter_enable_preview','smart_shooter_getinfo'].includes(this_data.msg_type)){
|
|
|
console.log('message');
|
|
|
console.log(this_data);
|
|
|
+ // Log.info(this_data);
|
|
|
}
|
|
|
if(this_data.msg_type){
|
|
|
let notAllMessage = false
|
|
|
@@ -305,7 +306,7 @@ const pySocket = function () {
|
|
|
console.log(message);
|
|
|
console.log(app.socket?.readyState);
|
|
|
if(!app.socket){
|
|
|
- await this.init(this.app)
|
|
|
+ await this.init()
|
|
|
}
|
|
|
// 检查连接状态
|
|
|
if (app.socket?.readyState === WebSocket.OPEN) {
|