@eyeclaw/eyeclaw 2.4.4 → 2.4.5
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 +1 -1
- package/src/websocket-client.ts +4 -2
package/package.json
CHANGED
package/src/websocket-client.ts
CHANGED
|
@@ -201,7 +201,8 @@ export class EyeClawWebSocketClient {
|
|
|
201
201
|
|
|
202
202
|
try {
|
|
203
203
|
// 尝试一个简单的 HTTP 请求来检测网络是否可用
|
|
204
|
-
|
|
204
|
+
// 直接使用配置的 serverUrl,不需要转换
|
|
205
|
+
const serverUrl = this.config.serverUrl
|
|
205
206
|
const controller = new AbortController()
|
|
206
207
|
const timeoutId = setTimeout(() => controller.abort(), 3000)
|
|
207
208
|
|
|
@@ -852,7 +853,8 @@ export class EyeClawWebSocketClient {
|
|
|
852
853
|
|
|
853
854
|
try {
|
|
854
855
|
// 尝试 HTTP 健康检查
|
|
855
|
-
|
|
856
|
+
// 直接使用配置的 serverUrl,不需要转换
|
|
857
|
+
const serverUrl = this.config.serverUrl
|
|
856
858
|
const healthUrl = `${serverUrl}/api/v1/health`
|
|
857
859
|
|
|
858
860
|
const controller = new AbortController()
|