Skip to content

Commit

Permalink
fix latest event id (#5789)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren authored Dec 24, 2024
1 parent f9cc0bc commit d4e670a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/context/ws-client-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ export function WsClientProvider({

function handleDisconnect() {
setStatus(WsClientProviderStatus.DISCONNECTED);
const sio = sioRef.current;
if (!sio) {
return;
}
sio.io.opts.query = sio.io.opts.query || {};
sio.io.opts.query.latest_event_id = lastEventRef.current?.id;
}

function handleError() {
Expand Down

0 comments on commit d4e670a

Please sign in to comment.