diff --git a/.changeset/late-rabbits-share.md b/.changeset/late-rabbits-share.md new file mode 100644 index 0000000000..fd384fdf97 --- /dev/null +++ b/.changeset/late-rabbits-share.md @@ -0,0 +1,5 @@ +--- +"livekit-client": patch +--- + +Add page leave log diff --git a/src/room/Room.ts b/src/room/Room.ts index 8551cc078f..8030bc5786 100644 --- a/src/room/Room.ts +++ b/src/room/Room.ts @@ -870,6 +870,7 @@ class Room extends (EventEmitter as new () => TypedEmitter) } private onPageLeave = async () => { + this.log.info('Page leave detected, disconnecting', this.logContext); await this.disconnect(); };