From d36d24f4f1b6f97c3faa80aea63d70a52afc0bc3 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Wed, 30 Oct 2024 17:46:29 -0400 Subject: [PATCH] add err to OnConnectionLost --- sdks/js-sdk/src/ApiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/js-sdk/src/ApiClient.ts b/sdks/js-sdk/src/ApiClient.ts index 16b5aa53f..eff85ac02 100644 --- a/sdks/js-sdk/src/ApiClient.ts +++ b/sdks/js-sdk/src/ApiClient.ts @@ -104,7 +104,7 @@ export type SubscriptionManager = { updateContentTopics?: UpdateContentTopics; }; -export type OnConnectionLostCallback = () => void; +export type OnConnectionLostCallback = (err?: Error) => void; const isAbortError = (err?: Error): boolean => { if (!err) {