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