@tiflis-io/tiflis-code-tunnel 0.3.5 → 0.3.6

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.
Files changed (2) hide show
  1. package/dist/main.js +10 -10
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -120,16 +120,16 @@ function getProtocolVersion() {
120
120
  return `${PROTOCOL_VERSION.major}.${PROTOCOL_VERSION.minor}.${PROTOCOL_VERSION.patch}`;
121
121
  }
122
122
  var CONNECTION_TIMING = {
123
- /** How often clients should send ping (15 seconds - keeps connection alive through proxies) */
124
- PING_INTERVAL_MS: 15e3,
125
- /** Max time to wait for ping before considering connection stale (45 seconds) */
126
- PONG_TIMEOUT_MS: 45e3,
127
- /** Interval for checking timed-out connections (10 seconds) */
128
- TIMEOUT_CHECK_INTERVAL_MS: 1e4,
129
- /** Minimum reconnect delay (1 second) */
130
- RECONNECT_DELAY_MIN_MS: 1e3,
131
- /** Maximum reconnect delay (30 seconds) */
132
- RECONNECT_DELAY_MAX_MS: 3e4
123
+ /** How often clients should send ping (5 seconds - fast liveness detection) */
124
+ PING_INTERVAL_MS: 5e3,
125
+ /** Max time to wait for ping before considering connection stale (15 seconds = 3 missed pings) */
126
+ PONG_TIMEOUT_MS: 15e3,
127
+ /** Interval for checking timed-out connections (5 seconds - faster cleanup) */
128
+ TIMEOUT_CHECK_INTERVAL_MS: 5e3,
129
+ /** Minimum reconnect delay (500ms - fast first retry) */
130
+ RECONNECT_DELAY_MIN_MS: 500,
131
+ /** Maximum reconnect delay (5 seconds - don't wait too long) */
132
+ RECONNECT_DELAY_MAX_MS: 5e3
133
133
  };
134
134
  var WEBSOCKET_CONFIG = {
135
135
  /** Path for WebSocket endpoint */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiflis-io/tiflis-code-tunnel",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Tunnel server for tiflis-code - reverse proxy for workstation connections",
5
5
  "author": "Roman Barinov <rbarinov@gmail.com>",
6
6
  "license": "FSL-1.1-NC",