Skip to content

feat(studio-server): replay latest live-game event to late watch subscribers - #1696

Open
mateicanavra wants to merge 1 commit into
mainfrom
codex/live-game-initial-replay
Open

feat(studio-server): replay latest live-game event to late watch subscribers#1696
mateicanavra wants to merge 1 commit into
mainfrom
codex/live-game-initial-replay

Conversation

@mateicanavra

Copy link
Copy Markdown
Owner

When a client connects to studio.events.watch, it previously only received a hello event as the initial payload. If a live-game event had already been published before the client subscribed, the client would miss it and have no game state until the next update.

This change caches the most recent live-game event in StudioEventHub and replays it as part of the initial event sequence sent to new subscribers, immediately after the hello event. This ensures late-joining clients receive the current game state without waiting for the next publish cycle.

@mateicanavra
mateicanavra marked this pull request as ready for review June 14, 2026 01:42

mateicanavra commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

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