build: 更新项目至studio panda

This commit is contained in:
2026-06-02 10:59:18 +08:00
parent 9e602a6cd1
commit 3e0e9f3259
10 changed files with 730 additions and 39 deletions

View File

@@ -0,0 +1,18 @@
package com.ttstd.remoteservice.config;
/**
* WebSocket 配置类
* 用于配置WebSocket连接的各种参数
*/
public class WebSocketConfig {
public String wsUrl; // WebSocket服务器地址
public static final long heartbeatInterval = 30000; // 心跳间隔默认10秒
public static final long reconnectInterval = 5000; // 重连间隔默认5秒
public static final int maxReconnectAttempts = 5; // 最大重连次数
public static final boolean autoReconnect = true; // 是否自动重连
public static final boolean needHeartbeat = true; // 是否需要心跳检测
public static final long connectTimeout = 10; // 连接超时时间(秒)
public static final long readTimeout = 10; // 读取超时时间(秒)
public static final long writeTimeout = 10; // 写入超时时间(秒)
}