Function: getActiveCallSession()
ts
function getActiveCallSession(): Promise<CallSession | null>;Defined in: Calls.ts:104
Gets the currently active call session, if any.
Returns
Promise<CallSession | null>
The active call session, or null if no call is in progress.
Example
typescript
const session = await getActiveCallSession();
if (session) {
console.log('Active call with:', session.remoteParticipants[0]?.displayName);
}