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.
- package/lib/commands/tunnel.js +8 -3
- package/package.json +1 -1
package/lib/commands/tunnel.js
CHANGED
|
@@ -46,10 +46,15 @@ module.exports = async function tunnel(opts) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
const socket = ioClient(wsUrl, {
|
|
49
|
-
|
|
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:
|
|
52
|
-
|
|
54
|
+
reconnectionDelay: 1500,
|
|
55
|
+
reconnectionDelayMax: 5000,
|
|
56
|
+
reconnectionAttempts: Infinity,
|
|
57
|
+
timeout: 20000,
|
|
53
58
|
});
|
|
54
59
|
|
|
55
60
|
// Mantener el mismo tunnelId entre reconexiones
|