@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.
- package/dist/main.js +10 -10
- 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 (
|
|
124
|
-
PING_INTERVAL_MS:
|
|
125
|
-
/** Max time to wait for ping before considering connection stale (
|
|
126
|
-
PONG_TIMEOUT_MS:
|
|
127
|
-
/** Interval for checking timed-out connections (
|
|
128
|
-
TIMEOUT_CHECK_INTERVAL_MS:
|
|
129
|
-
/** Minimum reconnect delay (
|
|
130
|
-
RECONNECT_DELAY_MIN_MS:
|
|
131
|
-
/** Maximum reconnect delay (
|
|
132
|
-
RECONNECT_DELAY_MAX_MS:
|
|
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