Repository navigation
Conversation
メイン(キューブをつないだタイマー画面)が回転・状態・タイマーを POST /api/live/events で送り、 見る側は GET /api/live/stream(SSE)で受け取って、自分用のキューブのストアとタイマーの表示に映す。 状態はサーバーのメモリにだけ持つ。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PC でキューブをつないでタイマー画面を開いていると、スマホなどの「中継」(
/live)に同じ画面を映す。見る側は見るだけで、記録も操作もしない。POST /api/live/eventsで送る。1つずつ順に送り、溜まった分はまとめる。送れなかったら次に今の状態を丸ごと送り直す。15秒ごとに生きている知らせ、タブを閉じたら sendBeacon で byeinternal/live)は最新の状態をメモリにだけ持ち、GET /api/live/stream(SSE)で流す。見始めたときは今の状態(snapshot)から。40秒届かなければメインはいないとみなす。止めるときは SSE を切ってから Shutdown する/api/live/eventsはリクエストのログに残さない試したこと:Go・vitest のテスト、型検査・lint。別ポートで動かしたサーバーに、モック接続のメインとスマホ幅の
/liveをつなぎ、スクランブル → インスペクション → 計測 → 完了、途中から開いた場合、メインを閉じた場合を確かめた。実機の GAN キューブではまだ試していない。🤖 Generated with Claude Code