Files
livekit/pkg/rtc
Raja Subramanian 9d8ee5a319 Report disconnected for older disconnected participants. (#4910)
There are reports of disconnected participant update missing -
https://github.com/livekit/client-sdk-js/pull/2096. That results in
clients retaining disconnected participant(s) in its roster.

Two changes
1. Look for participant disconnects a little farther back than last
   signal time as client app might have lost visibility earlier.
2. Look at all participants within the relaxed window above. The update
   cache is LRU. So, in theory can stop when an entry is before the time
   threshold above. But, theoretically it is possible that `updatedAt`
   time and LRU queuing time can flip ordering although very unlikely.

I think we should do one of the following to make it more robust, but
both require client side changes
1. Send full participant list in `ReconnectResponse`. Clients can use
   that to drop participants not in the list.
2. Add a sequence number to all signal responses (maybe signal requests
   as well) and have client send up the last response it saw in
   `SyncState` message. Server can then replay all the messages after
   that. This also requires a message cache on server side.
2026-09-26 00:08:42 +05:30
..
2026-09-21 15:40:21 -07:00
2024-03-21 02:48:26 -07:00
2025-08-28 05:20:25 -07:00