entexto-cli 1.4.6 → 1.4.7

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.
@@ -46,10 +46,15 @@ module.exports = async function tunnel(opts) {
46
46
  }
47
47
 
48
48
  const socket = ioClient(wsUrl, {
49
- transports: ['websocket'],
49
+ // Polling primero → upgrade a WebSocket. Esto sobrevive a Cloudflare y
50
+ // otros proxies que cierran WebSockets agresivamente (como hace ngrok).
51
+ transports: ['polling', 'websocket'],
52
+ upgrade: true,
50
53
  reconnection: true,
51
- reconnectionDelay: 2000,
52
- reconnectionAttempts: Infinity, // reintentar indefinidamente
54
+ reconnectionDelay: 1500,
55
+ reconnectionDelayMax: 5000,
56
+ reconnectionAttempts: Infinity,
57
+ timeout: 20000,
53
58
  });
54
59
 
55
60
  // Mantener el mismo tunnelId entre reconexiones
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entexto-cli",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "CLI oficial de Entexto — Deploy y gestión de proyectos desde tu terminal",
5
5
  "main": "lib/index.js",
6
6
  "bin": {