RemoteParticipant
Defined in: client-sdk-js/src/participant/RemoteParticipant.ts:29
A typed wrapper over Node’s EventEmitter.
Extends EventEmitter with declare overrides so that emit, on,
off, etc. are type-safe without introducing circular-reference issues
that arise when using typed-emitter directly in extends clauses
whose event maps reference the class itself.
Runtime behaviour is 100% EventEmitter; this class adds zero runtime
code.
Extends
Section titled “Extends”Properties
Section titled “Properties”addListener
Section titled “addListener”addListener: <E>(event, listener) => this;Defined in: client-sdk-js/src/utils/typedEmitter.ts:37
Type Parameters
Section titled “Type Parameters”E extends string | number
Parameters
Section titled “Parameters”E
listener
Section titled “listener”E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E] : (…args) => void
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”attributes
Section titled “attributes”attributes: Record<string, string> = {};Defined in: client-sdk-js/src/participant/Participant.ts:157
Inherited from
Section titled “Inherited from”audioLevel
Section titled “audioLevel”audioLevel: number = 0;Defined in: client-sdk-js/src/participant/Participant.ts:156
Inherited from
Section titled “Inherited from”audioTrackPublications
Section titled “audioTrackPublications”audioTrackPublications: Map<string, RemoteTrackPublication>;Defined in: client-sdk-js/src/participant/Participant.ts:162
Inherited from
Section titled “Inherited from”Participant.audioTrackPublications
emit: <E>(event, ...args) => boolean;Defined in: client-sdk-js/src/utils/typedEmitter.ts:17
Type Parameters
Section titled “Type Parameters”E extends ParticipantEvent
Parameters
Section titled “Parameters”E
…Parameters<ParticipantEvents<RemoteTrackPublication>[E]>
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”groupId?
Section titled “groupId?”groupId?: string;Defined in: client-sdk-js/src/participant/Participant.ts:160
The group (breakout room) this participant is currently in. undefined = main room.
Inherited from
Section titled “Inherited from”identity
Section titled “identity”identity: string;Defined in: client-sdk-js/src/participant/Participant.ts:151
Inherited from
Section titled “Inherited from”isSpeaking
Section titled “isSpeaking”isSpeaking: boolean = false;Defined in: client-sdk-js/src/participant/Participant.ts:155
Inherited from
Section titled “Inherited from”joinedAt?
Section titled “joinedAt?”joinedAt?: Date;Defined in: client-sdk-js/src/participant/Participant.ts:165
Inherited from
Section titled “Inherited from”lastSpokeAt?
Section titled “lastSpokeAt?”lastSpokeAt?: Date;Defined in: client-sdk-js/src/participant/Participant.ts:164
Inherited from
Section titled “Inherited from”listenerCount
Section titled “listenerCount”listenerCount: (event) => number;Defined in: client-sdk-js/src/utils/typedEmitter.ts:57
Parameters
Section titled “Parameters”string | number
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”listeners
Section titled “listeners”listeners: <E>(event) => E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E][] : ((...args) => void)[];Defined in: client-sdk-js/src/utils/typedEmitter.ts:49
Type Parameters
Section titled “Type Parameters”E extends string | number
Parameters
Section titled “Parameters”E
Returns
Section titled “Returns”E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E][] : ((…args) => void)[]
Inherited from
Section titled “Inherited from”metadata?
Section titled “metadata?”metadata?: string;Defined in: client-sdk-js/src/participant/Participant.ts:153
Inherited from
Section titled “Inherited from”name?: string;Defined in: client-sdk-js/src/participant/Participant.ts:152
Inherited from
Section titled “Inherited from”off: <E>(event, listener) => this;Defined in: client-sdk-js/src/utils/typedEmitter.ts:32
Type Parameters
Section titled “Type Parameters”E extends string | number
Parameters
Section titled “Parameters”E
listener
Section titled “listener”E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E] : (…args) => void
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”on: <E>(event, listener) => this;Defined in: client-sdk-js/src/utils/typedEmitter.ts:22
Type Parameters
Section titled “Type Parameters”E extends string | number
Parameters
Section titled “Parameters”E
listener
Section titled “listener”E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E] : (…args) => void
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”once: <E>(event, listener) => this;Defined in: client-sdk-js/src/utils/typedEmitter.ts:27
Type Parameters
Section titled “Type Parameters”E extends string | number
Parameters
Section titled “Parameters”E
listener
Section titled “listener”E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E] : (…args) => void
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”permissions?
Section titled “permissions?”permissions?: ParticipantPermission;Defined in: client-sdk-js/src/participant/Participant.ts:158
Inherited from
Section titled “Inherited from”rawListeners
Section titled “rawListeners”rawListeners: <E>(event) => E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E][] : ((...args) => void)[];Defined in: client-sdk-js/src/utils/typedEmitter.ts:53
Type Parameters
Section titled “Type Parameters”E extends string | number
Parameters
Section titled “Parameters”E
Returns
Section titled “Returns”E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E][] : ((…args) => void)[]
Inherited from
Section titled “Inherited from”removeAllListeners
Section titled “removeAllListeners”removeAllListeners: (event?) => this;Defined in: client-sdk-js/src/utils/typedEmitter.ts:47
Parameters
Section titled “Parameters”event?
Section titled “event?”string | number
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”Participant.removeAllListeners
removeListener
Section titled “removeListener”removeListener: <E>(event, listener) => this;Defined in: client-sdk-js/src/utils/typedEmitter.ts:42
Type Parameters
Section titled “Type Parameters”E extends string | number
Parameters
Section titled “Parameters”E
listener
Section titled “listener”E extends keyof ParticipantEvents<RemoteTrackPublication> ? ParticipantEvents<RemoteTrackPublication>[E] : (…args) => void
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”sid: string;Defined in: client-sdk-js/src/participant/Participant.ts:150
Inherited from
Section titled “Inherited from”state: ParticipantState;Defined in: client-sdk-js/src/participant/Participant.ts:154
Inherited from
Section titled “Inherited from”trackPublications
Section titled “trackPublications”trackPublications: Map<string, RemoteTrackPublication>;Defined in: client-sdk-js/src/participant/Participant.ts:161
Inherited from
Section titled “Inherited from”videoTrackPublications
Section titled “videoTrackPublications”videoTrackPublications: Map<string, RemoteTrackPublication>;Defined in: client-sdk-js/src/participant/Participant.ts:163
Inherited from
Section titled “Inherited from”Participant.videoTrackPublications
defaultMaxListeners
Section titled “defaultMaxListeners”static defaultMaxListeners: number;Defined in: client-sdk-js/node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts:5
Inherited from
Section titled “Inherited from”Participant.defaultMaxListeners
Accessors
Section titled “Accessors”connectionQuality
Section titled “connectionQuality”Get Signature
Section titled “Get Signature”get connectionQuality(): ConnectionQuality;Defined in: client-sdk-js/src/participant/Participant.ts:217
Current connection quality for this participant.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”isActive
Section titled “isActive”Get Signature
Section titled “Get Signature”get isActive(): boolean;Defined in: client-sdk-js/src/participant/Participant.ts:200
Whether the participant is in an active (joined) state.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isAgent
Section titled “isAgent”Get Signature
Section titled “Get Signature”get isAgent(): boolean;Defined in: client-sdk-js/src/participant/Participant.ts:195
Whether this participant is an AI agent.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isCameraEnabled
Section titled “isCameraEnabled”Get Signature
Section titled “Get Signature”get isCameraEnabled(): boolean;Defined in: client-sdk-js/src/participant/Participant.ts:251
Whether the participant has an enabled camera track.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isLocal
Section titled “isLocal”Get Signature
Section titled “Get Signature”get isLocal(): boolean;Defined in: client-sdk-js/src/participant/RemoteParticipant.ts:53
Returns
Section titled “Returns”boolean
Overrides
Section titled “Overrides”isMicrophoneEnabled
Section titled “isMicrophoneEnabled”Get Signature
Section titled “Get Signature”get isMicrophoneEnabled(): boolean;Defined in: client-sdk-js/src/participant/Participant.ts:256
Whether the participant has an enabled microphone track.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Participant.isMicrophoneEnabled
isScreenShareEnabled
Section titled “isScreenShareEnabled”Get Signature
Section titled “Get Signature”get isScreenShareEnabled(): boolean;Defined in: client-sdk-js/src/participant/Participant.ts:261
Whether the participant is sharing their screen.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Participant.isScreenShareEnabled
Get Signature
Section titled “Get Signature”get kind(): ParticipantKind;Defined in: client-sdk-js/src/participant/Participant.ts:190
The kind of participant (Standard, Agent, etc.).
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”eventNames()
Section titled “eventNames()”eventNames(): (string | number)[];Defined in: client-sdk-js/node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts:7
Returns
Section titled “Returns”(string | number)[]
Inherited from
Section titled “Inherited from”getMaxListeners()
Section titled “getMaxListeners()”getMaxListeners(): number;Defined in: client-sdk-js/node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts:9
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”getTrackPublication()
Section titled “getTrackPublication()”getTrackPublication(source): RemoteTrackPublication | undefined;Defined in: client-sdk-js/src/participant/Participant.ts:344
Parameters
Section titled “Parameters”source
Section titled “source”Returns
Section titled “Returns”RemoteTrackPublication | undefined
Inherited from
Section titled “Inherited from”Participant.getTrackPublication
getTrackPublicationByName()
Section titled “getTrackPublicationByName()”getTrackPublicationByName(name): RemoteTrackPublication | undefined;Defined in: client-sdk-js/src/participant/Participant.ts:359
Find a track publication by its name.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”RemoteTrackPublication | undefined
Inherited from
Section titled “Inherited from”Participant.getTrackPublicationByName
getTrackPublications()
Section titled “getTrackPublications()”getTrackPublications(): RemoteTrackPublication[];Defined in: client-sdk-js/src/participant/Participant.ts:268
Returns all track publications as an array.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Participant.getTrackPublications
getVolume()
Section titled “getVolume()”getVolume(): number;Defined in: client-sdk-js/src/participant/RemoteParticipant.ts:88
Get the current output volume for this participant’s audio tracks. Returns the volume of the first audio track, or 1 if none.
Returns
Section titled “Returns”number
prependListener()
Section titled “prependListener()”prependListener(type, listener): this;Defined in: client-sdk-js/node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts:14
Parameters
Section titled “Parameters”string | number
listener
Section titled “listener”Listener
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”prependOnceListener()
Section titled “prependOnceListener()”prependOnceListener(type, listener): this;Defined in: client-sdk-js/node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts:15
Parameters
Section titled “Parameters”string | number
listener
Section titled “listener”Listener
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”Participant.prependOnceListener
setMaxListeners()
Section titled “setMaxListeners()”setMaxListeners(n): this;Defined in: client-sdk-js/node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts:8
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”setVolume()
Section titled “setVolume()”setVolume(volume): void;Defined in: client-sdk-js/src/participant/RemoteParticipant.ts:77
Set the output volume for all audio tracks from this participant.
Parameters
Section titled “Parameters”volume
Section titled “volume”number
Value between 0 and 1.
Returns
Section titled “Returns”void
updateFromInfo()
Section titled “updateFromInfo()”updateFromInfo(info): void;Defined in: client-sdk-js/src/participant/Participant.ts:272
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”waitUntilActive()
Section titled “waitUntilActive()”waitUntilActive(): Promise<void>;Defined in: client-sdk-js/src/participant/Participant.ts:209
Returns a promise that resolves once the participant is active and ready to receive data messages. Rejects if the participant transitions away from the active state first.
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”listenerCount()
Section titled “listenerCount()”static listenerCount(emitter, type): number;Defined in: client-sdk-js/node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts:4
Parameters
Section titled “Parameters”emitter
Section titled “emitter”EventEmitter
string | number
Returns
Section titled “Returns”number