@thru/replay 0.2.3 → 0.2.4
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/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -53,7 +53,11 @@ var ChainClient = class {
|
|
|
53
53
|
return createGrpcTransport({
|
|
54
54
|
baseUrl: this.options.baseUrl,
|
|
55
55
|
useBinaryFormat: this.options.useBinaryFormat ?? true,
|
|
56
|
-
interceptors: mergedInterceptors.length ? mergedInterceptors : void 0
|
|
56
|
+
interceptors: mergedInterceptors.length ? mergedInterceptors : void 0,
|
|
57
|
+
pingIntervalMs: 3e4,
|
|
58
|
+
pingIdleConnection: true,
|
|
59
|
+
pingTimeoutMs: 1e4,
|
|
60
|
+
idleConnectionTimeoutMs: 0
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
63
|
createHeaderInterceptor() {
|
|
@@ -312,7 +316,7 @@ var LivePump = class {
|
|
|
312
316
|
var DEFAULT_RETRY_CONFIG = {
|
|
313
317
|
initialDelayMs: 1e3,
|
|
314
318
|
maxDelayMs: 3e4,
|
|
315
|
-
connectionTimeoutMs:
|
|
319
|
+
connectionTimeoutMs: 3e5
|
|
316
320
|
};
|
|
317
321
|
function calculateBackoff(attempt, config) {
|
|
318
322
|
const delay2 = config.initialDelayMs * Math.pow(2, attempt);
|