Skip to content

Commit

Permalink
fix: added retry wait for ws sub
Browse files Browse the repository at this point in the history
  • Loading branch information
mckrava committed Jan 5, 2024
1 parent babc473 commit 6020307
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/api.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const ApiProviders: Provider[] = [
url: `${env.DATA_PROVIDER_SQUID_WS_URL}`,
retryAttempts: Infinity,
shouldRetry: () => true,
retryWait: () => new Promise((resolve) => setTimeout(resolve, 15000)),
keepAlive: 10000
});
client.on('error', (e) => logger.info('WS Api ERROR - ', e));
Expand Down

0 comments on commit 6020307

Please sign in to comment.