From 6c59989f4b9ccce1ad8597755460b9ca978e2954 Mon Sep 17 00:00:00 2001 From: Matvei Andrienko Date: Wed, 11 Dec 2024 15:19:48 +0100 Subject: [PATCH] drop "experimental" --- packages/client/src/StreamVideoClient.ts | 5 ++--- packages/client/src/coordinator/connection/types.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/client/src/StreamVideoClient.ts b/packages/client/src/StreamVideoClient.ts index 5fd02b247..a057a1758 100644 --- a/packages/client/src/StreamVideoClient.ts +++ b/packages/client/src/StreamVideoClient.ts @@ -89,12 +89,11 @@ export class StreamVideoClient { if (typeof apiKeyOrArgs === 'string') { logLevel = opts?.logLevel || logLevel; logger = opts?.logger || logger; - if (opts?.expertimental_enableTimerWorker) enableTimerWorker(); + if (opts?.enableTimerWorker) enableTimerWorker(); } else { logLevel = apiKeyOrArgs.options?.logLevel || logLevel; logger = apiKeyOrArgs.options?.logger || logger; - if (apiKeyOrArgs.options?.expertimental_enableTimerWorker) - enableTimerWorker(); + if (apiKeyOrArgs.options?.enableTimerWorker) enableTimerWorker(); } setLogger(logger, logLevel); diff --git a/packages/client/src/coordinator/connection/types.ts b/packages/client/src/coordinator/connection/types.ts index 5956ecd70..c1d8a8554 100644 --- a/packages/client/src/coordinator/connection/types.ts +++ b/packages/client/src/coordinator/connection/types.ts @@ -151,7 +151,7 @@ export type StreamClientOptions = Partial & { * Create Web Worker to initiate timer events like health checks. Can possibly prevent * timer throttling issues in inactive browser tabs. */ - expertimental_enableTimerWorker?: boolean; + enableTimerWorker?: boolean; }; export type TokenProvider = () => Promise;