@ynhcj/xiaoyi 2.0.8 → 2.0.9

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/dist/websocket.js CHANGED
@@ -42,11 +42,7 @@ class XiaoYiWebSocketManager extends events_1.EventEmitter {
42
42
  });
43
43
  this.setupWebSocketHandlers();
44
44
  return new Promise((resolve, reject) => {
45
- const timeout = setTimeout(() => {
46
- reject(new Error("Connection timeout"));
47
- }, 30000); // Increased timeout to 30 seconds
48
45
  this.ws.once("open", () => {
49
- clearTimeout(timeout);
50
46
  this.state.connected = true;
51
47
  this.state.authenticated = true; // Authenticated via headers
52
48
  this.state.reconnectAttempts = 0;
@@ -59,7 +55,6 @@ class XiaoYiWebSocketManager extends events_1.EventEmitter {
59
55
  resolve();
60
56
  });
61
57
  this.ws.once("error", (error) => {
62
- clearTimeout(timeout);
63
58
  reject(error);
64
59
  });
65
60
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "XiaoYi channel plugin for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",