From 9d2771e64d233c36192a16b83c710cfa789f0b4b Mon Sep 17 00:00:00 2001 From: Wouter Klijn Date: Tue, 26 Nov 2024 08:08:33 +0100 Subject: [PATCH 1/3] chore: expose reconnection types --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index ff25e97632..870cb82b54 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,6 +2,7 @@ import { Mutex } from '@livekit/mutex'; import { DataPacket_Kind, DisconnectReason, SubscriptionError } from '@livekit/protocol'; import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger'; import DefaultReconnectPolicy from './room/DefaultReconnectPolicy'; +import type { ReconnectContext, ReconnectPolicy } from './room/ReconnectPolicy'; import Room, { ConnectionState } from './room/Room'; import LocalParticipant from './room/participant/LocalParticipant'; import Participant, { ConnectionQuality, ParticipantKind } from './room/participant/Participant'; @@ -108,4 +109,6 @@ export type { AudioSenderStats, VideoReceiverStats, VideoSenderStats, + ReconnectContext, + ReconnectPolicy, }; From 525ece49e7e2fcf7c8b5759d737e946d72785423 Mon Sep 17 00:00:00 2001 From: Wouter Klijn Date: Tue, 26 Nov 2024 08:34:25 +0100 Subject: [PATCH 2/3] chore: add changeset --- .changeset/expose-reconnect-types.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/expose-reconnect-types.md diff --git a/.changeset/expose-reconnect-types.md b/.changeset/expose-reconnect-types.md new file mode 100644 index 0000000000..a43f975cf6 --- /dev/null +++ b/.changeset/expose-reconnect-types.md @@ -0,0 +1,5 @@ +--- +'livekit-client': minor +--- + +Expose `ReconnectContext` and `ReconnectPolicy`, for use in custom reconnection implementations. From f416356af5dbdf039bd591970e4130d227c4c68c Mon Sep 17 00:00:00 2001 From: lukasIO Date: Tue, 26 Nov 2024 08:36:21 +0100 Subject: [PATCH 3/3] Update expose-reconnect-types.md --- .changeset/expose-reconnect-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/expose-reconnect-types.md b/.changeset/expose-reconnect-types.md index a43f975cf6..49c641ed60 100644 --- a/.changeset/expose-reconnect-types.md +++ b/.changeset/expose-reconnect-types.md @@ -1,5 +1,5 @@ --- -'livekit-client': minor +'livekit-client': patch --- Expose `ReconnectContext` and `ReconnectPolicy`, for use in custom reconnection implementations.