thousands-night-79795
06/27/2025, 11:06 AMtall-airline-16756
06/27/2025, 11:06 AMtall-airline-16756
06/27/2025, 11:07 AMsid
and identity
is:
• sid (Session ID): A unique identifier generated by the LiveKit server for a participant in a session. It is server-generated and used internally.
• identity: A unique identifier that you (the developer) provide for a participant. It is application-provided and must be unique per room. If multiple participants with the same identity join a room, only the most recent one will remain connected.
In version 2 of the LiveKit SDKs, some changes were made to improve clarity between these two concepts:
• The participants map now uses identity
as the key instead of sid
.
• They’ve added Participant.Sid
and Participant.Identity
inline value classes in Android to prevent accidentally using one in place of the other. Sources: SDK migration from v1 to v2 | LiveKit Docs | Core API primitives | LiveKit Docsthousands-night-79795
06/27/2025, 11:12 AMtall-airline-16756
06/27/2025, 11:13 AMthousands-night-79795
06/27/2025, 11:16 AMtall-airline-16756
06/27/2025, 11:16 AM