@orbinum/sdk 0.14.0 → 0.14.1
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -226,7 +226,7 @@ var SubstrateClient = class _SubstrateClient {
|
|
|
226
226
|
* Throws if the node does not respond within `timeoutMs`.
|
|
227
227
|
*/
|
|
228
228
|
static async connect(wsUrl, timeoutMs = 15e3) {
|
|
229
|
-
const provider = (0, import_ws.getWsProvider)(wsUrl);
|
|
229
|
+
const provider = (0, import_ws.getWsProvider)(wsUrl, { heartbeatTimeout: 3e4 });
|
|
230
230
|
const papi = (0, import_polkadot_api.createClient)(provider);
|
|
231
231
|
let timer;
|
|
232
232
|
try {
|
package/dist/index.mjs
CHANGED
|
@@ -95,7 +95,7 @@ var SubstrateClient = class _SubstrateClient {
|
|
|
95
95
|
* Throws if the node does not respond within `timeoutMs`.
|
|
96
96
|
*/
|
|
97
97
|
static async connect(wsUrl, timeoutMs = 15e3) {
|
|
98
|
-
const provider = getWsProvider(wsUrl);
|
|
98
|
+
const provider = getWsProvider(wsUrl, { heartbeatTimeout: 3e4 });
|
|
99
99
|
const papi = createClient(provider);
|
|
100
100
|
let timer;
|
|
101
101
|
try {
|