Skip to content

feat(room): report room SID changes with OnRoomSIDChanged - #1038

Closed
biglittlebigben wants to merge 1 commit into
mainfrom
benjamin/room-sid-updates
Closed

biglittlebigben wants to merge 1 commit into
mainfrom
benjamin/room-sid-updates

Conversation

@biglittlebigben

Copy link
Copy Markdown
Contributor

Summary

  • Room.SID() follows the room's current session: a room update carrying a different non-empty SID replaces the known one.
  • New RoomCallback.OnRoomSIDChanged(roomSID), called when the SID changes after it was first known — the server starting a new session for a live room, a full reconnect into a new session, or a move.
  • OnRoomMoved sets the destination room name before applying the SID, so OnRoomSIDChanged observes the new name.

Testing

  • New TestOnRoomUpdateReportsSIDChange and TestOnRoomMovedReportsSIDChangeWithNewName; go test -race -run TestOnRoom . passes.
  • Integration tests that need a LiveKit server were not run.

🤖 Generated with Claude Code

setSid replaces a known SID with a different non-empty one; OnRoomUpdate calls the new RoomCallback.OnRoomSIDChanged when it does.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant