Skip to content

Check for duplicate participant identities when a LiveKit session disconnects

Check the participant’s disconnect reason and the identities used by recent joins. LiveKit requires an identity to be unique within a room; when a second participant joins with the same identity, the earlier participant is disconnected. Use separate approved identities for separate participants and test the session again.

What you need

For a training-session owner investigating why a participant drops when another person joins.

  • A sanitized room event timeline with participant identities and disconnect reasons.
  • The approved identity assignment scheme.
  • A test room and two distinct test participants.

Identify a duplicate room identity before treating the disconnect as a network problem.

  1. Record the disconnect reason and the time of the other participant join.
  2. Compare the participant identities in the same room without exposing tokens or personal details.
  3. If the identities collide, review how the application assigns an identity to each participant.
  4. After an authorized correction, connect two test participants and confirm both remain in the room and the approved screen share works.

A second join replaces the first participant

Synthetic room events with nonsecret test identities.

Scroll the table to see all columns.

Compare room identities
TimeEventIdentityResult
10:00Trainer joinstrainer-1Connected
10:05Second browser joinstrainer-1Same identity
10:05First participant disconnectstrainer-1Duplicate identity reason

Both joins used trainer-1 in the same room. Test separate identities for separate participants and confirm the intended access rights.

What to hand over

A room-event note showing the identity collision, disconnect reason and retest result.

Limitation. A disconnect can have many causes. This check applies only when the recorded reason and room events support an identity collision.

Next step

Bring a redacted example and the current workflow settings for review.

Discuss this workflow with Shadyy

Sources