@wendongfly/myhi 1.0.67 → 1.0.69

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.
@@ -334,7 +334,14 @@
334
334
  term.open(pane);
335
335
 
336
336
  // 创建 Socket 连接
337
- const socket = io({ transports: ['websocket'] });
337
+ const socket = io({
338
+ transports: ['websocket', 'polling'],
339
+ reconnection: true,
340
+ reconnectionAttempts: Infinity,
341
+ reconnectionDelay: 1000,
342
+ reconnectionDelayMax: 10000,
343
+ timeout: 30000,
344
+ });
338
345
 
339
346
  const tab = { id, sessionId, title: '连接中...', term, fitAddon, socket, pane, tabEl: null, alive: true };
340
347
  tabs.push(tab);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wendongfly/myhi",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "Web-based terminal sharing with chat UI — control your terminal from phone via LAN/Tailscale",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",