Files
livekit/pkg/rtc/types
Raja SubramanianandClaude Fable 5.2 347e639f46 Replay missed disconnects on resume from the client's last pong time (#5291)
* 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>
2026-11-30 18:50:21 +05:30
..