mirror of
https://github.com/livekit/livekit.git
synced 2026-12-04 23:38:52 +00:00
* Replay missed disconnects on resume from the client's last pong time A resuming client can send the timestamp of the last Pong it processed. The server replays the participant disconnects newer than the earlier of that time minus 1 s and the last signal receive time minus 3 s. Requests buffered by an offline client move the last signal receive time to just before the resume, the last Pong time does not move. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Take the test pong time from the cached disconnect time The simulated pong time came from time.Now(), so a pause of more than 1 s after the disconnect was cached moved the disconnect out of the look back. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Exercise the pong look back in the replay test A pong time equal to the disconnect time is replayed without the 1 s look back too. Use a pong time 500 ms after the disconnect. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>