Prove that the remote members modules only output remote members

They had loose types that were allowing them also output local members. They don't do this, it's just misleading.
This commit is contained in:
Robin
2025-12-08 23:01:44 -05:00
parent cc8e250d96
commit 47cd343d44
4 changed files with 33 additions and 47 deletions

View File

@@ -14,7 +14,6 @@ import {
ConnectionError,
type ConnectionState as LivekitConenctionState,
type Room as LivekitRoom,
type LocalParticipant,
type RemoteParticipant,
RoomEvent,
} from "livekit-client";
@@ -34,8 +33,6 @@ import {
SFURoomCreationRestrictedError,
} from "../../../utils/errors.ts";
export type PublishingParticipant = LocalParticipant | RemoteParticipant;
export interface ConnectionOpts {
/** The media transport to connect to. */
transport: LivekitTransport;
@@ -89,9 +86,7 @@ export class Connection {
* This is derived from `participantsIncludingSubscribers$` and `remoteTransports$`.
* It filters the participants to only those that are associated with a membership that claims to publish on this connection.
*/
public readonly remoteParticipantsWithTracks$: Behavior<
PublishingParticipant[]
>;
public readonly remoteParticipantsWithTracks$: Behavior<RemoteParticipant[]>;
/**
* Whether the connection has been stopped.