Skip to content

Commit

Permalink
chore: expose reconnection types (#1328)
Browse files Browse the repository at this point in the history
* chore: expose reconnection types

* chore: add changeset

* Update expose-reconnect-types.md

---------

Co-authored-by: lukasIO <[email protected]>
  • Loading branch information
wuhkuh and lukasIO authored Nov 26, 2024
1 parent 86a9c9c commit 50d8aa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/expose-reconnect-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-client': patch
---

Expose `ReconnectContext` and `ReconnectPolicy`, for use in custom reconnection implementations.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -108,4 +109,6 @@ export type {
AudioSenderStats,
VideoReceiverStats,
VideoSenderStats,
ReconnectContext,
ReconnectPolicy,
};

0 comments on commit 50d8aa3

Please sign in to comment.