Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pretty-grapes-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/rtc-node': patch
---

add an environment varaible to log all room events
3 changes: 3 additions & 0 deletions packages/livekit-rtc/src/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ export class Room extends (EventEmitter as new () => TypedEmitter<RoomCallbacks>
}

const ev = ffiEvent.message.value.message;
if (process.env.LIVEKIT_DEBUG_LOG_ROOM_EVENTS) {
console.log('Room event:', ev);
}
if (ev.case == 'participantConnected') {
const participant = this.createRemoteParticipant(ev.value.info!);
this.remoteParticipants.set(participant.identity!, participant);
Expand Down
Loading