diff --git a/packages/javascript/src/catcher.ts b/packages/javascript/src/catcher.ts index b148d88..4e9ae6e 100644 --- a/packages/javascript/src/catcher.ts +++ b/packages/javascript/src/catcher.ts @@ -194,8 +194,7 @@ export default class Catcher { */ this.transport = settings.transport ?? new Socket({ collectorEndpoint: settings.collectorEndpoint || `wss://${this.getIntegrationId()}.k1.hawk.so:443/ws`, - reconnectionAttempts: settings.reconnectionAttempts, - reconnectionTimeout: settings.reconnectionTimeout, + connectionIdleMs: settings.reconnectionTimeout, onClose(): void { log( 'Connection lost. Connection will be restored when new errors occurred', diff --git a/packages/javascript/src/types/hawk-initial-settings.ts b/packages/javascript/src/types/hawk-initial-settings.ts index 661bc32..e14aae5 100644 --- a/packages/javascript/src/types/hawk-initial-settings.ts +++ b/packages/javascript/src/types/hawk-initial-settings.ts @@ -36,6 +36,8 @@ export interface HawkInitialSettings { /** * How many time we should try to reconnect when connection lost. + * + * @deprecated not used anymore */ reconnectionAttempts?: number;