fierce-jordan-44682
10/01/2025, 9:19 AMtall-airline-16756
10/01/2025, 9:19 AMtall-airline-16756
10/01/2025, 9:19 AMlocal_participant property of the room. Here's a quick example to help you out:
# Python example
await room.local_participant.publish_data("hello world")
# Node.js example
await room.localParticipant?.sendText('hello world', { topic: 'hello-world' }); Sources: Inside a session | LiveKit Docs | Docs::Agentsfierce-jordan-44682
10/01/2025, 9:21 AMtall-airline-16756
10/01/2025, 9:21 AMidentity property of the Participant object. Here are some examples for different SDKs to guide you:
• JavaScript/TypeScript: participant.identity
• Python: participant.identity
• Node.js: participant.identity
• Unity: participant.Identity
Just so you know, the identity is unique within each room and you can access it for both local and remote participants. If you have any more questions or need further assistance, feel free to ask!
Sources: livekit-rtc/livekit/rtc/room.py | packages/livekit-rtc/src/participant.ts | Runtime/Scripts/Room/Participant/Participant.cs | Managing participants | LiveKit Docs | Rooms, participants, and tracks | LiveKit Docs