Skip to main content
useMeetingSessionSummary(): DailyMeetingSessionSummary | null Wraps meetingSessionSummary(). The value is populated when the local participant joins and stays in sync via the meeting-session-summary-updated event. It is null whenever there is no active meeting session: before joining, and again after the local participant leaves (left-meeting) or the call instance is destroyed (call-instance-destroyed). The session id is useful for correlating a call with its recordings, logs, and REST API resources.

Return value

Returns a DailyMeetingSessionSummary object while a meeting session is active, or null when there is no active session (before joining, and after left-meeting or call-instance-destroyed).
id
string
The meeting session’s unique identifier, available once the session has started. Use it to correlate the call with its recordings, logs, and REST API resources.

Example

import { useMeetingSessionSummary } from '@daily-co/daily-react';

export const UseMeetingSessionSummaryDemo = () => {
  const meetingSessionSummary = useMeetingSessionSummary();

  if (!meetingSessionSummary) {
    return <div>Waiting for the session to start</div>;
  }

  return <div>Session ID: {meetingSessionSummary.id}</div>;
};

See also